public function FormModeManager::getFormModesIdByEntity in Form mode manager 8
Same name and namespace in other branches
- 8.2 src/FormModeManager.php \Drupal\form_mode_manager\FormModeManager::getFormModesIdByEntity()
Gets all form modes id for a specific entity type.
Parameters
string $entity_type_id: The entity type id.
Return value
array An array contain all available form mode machine name.
Overrides FormModeManagerInterface::getFormModesIdByEntity
1 call to FormModeManager::getFormModesIdByEntity()
- FormModeManager::setEntityHandlersPerFormModes in src/
FormModeManager.php - Set all entity handlers needed by form mode manager on entity type basis.
File
- src/
FormModeManager.php, line 120
Class
- FormModeManager
- FormDisplayManager service.
Namespace
Drupal\form_mode_managerCode
public function getFormModesIdByEntity($entity_type_id) {
return array_keys($this
->getFormModesByEntity($entity_type_id));
}