public function FormModeManagerInterface::setFormClassPerFormModes in Form mode manager 8
Same name and namespace in other branches
- 8.2 src/FormModeManagerInterface.php \Drupal\form_mode_manager\FormModeManagerInterface::setFormClassPerFormModes()
Set new FormClass handler per form modes keyed by form mode name.
This setter are the best way to alter the basic FormClass, for specific operation (form mode)
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_definition: The entity type to alter.
string $form_mode_name: The form mode human name used by current entity definition.
See also
1 method overrides FormModeManagerInterface::setFormClassPerFormModes()
- FormModeManager::setFormClassPerFormModes in src/
FormModeManager.php - Set new FormClass handler per form modes keyed by form mode name.
File
- src/
FormModeManagerInterface.php, line 215
Class
- FormModeManagerInterface
- Interface FormModeManagerInterface.
Namespace
Drupal\form_mode_managerCode
public function setFormClassPerFormModes(EntityTypeInterface $entity_definition, $form_mode_name);