public function FormModeManager::getFormModeMachineName in Form mode manager 8
Same name and namespace in other branches
- 8.2 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
File
- src/
FormModeManager.php, line 236
Class
- FormModeManager
- FormDisplayManager service.
Namespace
Drupal\form_mode_managerCode
public function getFormModeMachineName($form_mode_id) {
return preg_replace('/^.*\\./', '', $form_mode_id);
}