public function FormModeManager::isValidFormMode in Form mode manager 8
Same name and namespace in other branches
- 8.2 src/FormModeManager.php \Drupal\form_mode_manager\FormModeManager::isValidFormMode()
Determine if form_mode definition passed is valid.
Parameters
array $form_mode: A form mode definition to fetch.
Return value
bool True if Form mode have a minimum informations or false.
Overrides FormModeManagerInterface::isValidFormMode
1 call to FormModeManager::isValidFormMode()
- FormModeManager::candidateToExclude in src/
FormModeManager.php - Evaluate if current form_mode is candidate to be filtered or not.
File
- src/
FormModeManager.php, line 152
Class
- FormModeManager
- FormDisplayManager service.
Namespace
Drupal\form_mode_managerCode
public function isValidFormMode(array $form_mode) {
return isset($form_mode['targetEntityType']) && isset($form_mode['id']);
}