public function FormModeManager::enhanceFormClassName in Form mode manager 8.2
2 calls to FormModeManager::enhanceFormClassName()
- FormModeManager::setFormClassPerFormModes in src/
FormModeManager.php - Set new FormClass handler per form modes keyed by form mode name.
- FormModeManager::setLinkTemplatePerFormModes in src/
FormModeManager.php - Set new LinkTemplate handler on entity definition basis.
File
- src/
FormModeManager.php, line 270
Class
- FormModeManager
- FormDisplayManager service.
Namespace
Drupal\form_mode_managerCode
public function enhanceFormClassName($op, $form_mode_name) {
return $op !== 'default' ? self::EDIT_PREFIX . $form_mode_name : self::ADD_PREFIX . $form_mode_name;
}