You are here

public function FormModeManager::getFormModesIdByEntity in Form mode manager 8.2

Same name and namespace in other branches
  1. 8 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

File

src/FormModeManager.php, line 114

Class

FormModeManager
FormDisplayManager service.

Namespace

Drupal\form_mode_manager

Code

public function getFormModesIdByEntity($entity_type_id) {
  return array_keys($this
    ->getFormModesByEntity($entity_type_id));
}