public function FormModeManager::getFormModeMachineName in Form mode manager 8.2
Same name and namespace in other branches
- 8 src/FormModeManager.php \Drupal\form_mode_manager\FormModeManager::getFormModeMachineName()
Retrieve Form Mode Machine Name from the form mode id.
Parameters
string $form_mode_id: Identifier of form mode prefixed by entity type id.
Return value
string The form mode machine name without prefixe of, entity (entity.form_mode_name).
Overrides FormModeManagerInterface::getFormModeMachineName
2 calls to FormModeManager::getFormModeMachineName()
- FormModeManager::candidateToExclude in src/
FormModeManager.php - Evaluate if current form_mode is candidate to be filtered or not.
- FormModeManager::filterInactiveDisplay in src/
FormModeManager.php - Filter form mode collection depending activation in bundle.
File
- src/
FormModeManager.php, line 255
Class
- FormModeManager
- FormDisplayManager service.
Namespace
Drupal\form_mode_managerCode
public function getFormModeMachineName($form_mode_id) {
return preg_replace('/^.*\\./', '', $form_mode_id);
}