Returns the entity form controller for the given form.
array $form_state: The form state array holding the entity form controller.
\Drupal\Core\Entity\EntityFormControllerInterface; An instance of the entity translation form interface or FALSE if not an entity form.
function translation_entity_form_controller(array $form_state) {
return isset($form_state['controller']) && $form_state['controller'] instanceof EntityFormControllerInterface ? $form_state['controller'] : FALSE;
}