You are here

public function FormModeManagerInterface::setFormClassPerFormModes in Form mode manager 8

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

http://bit.ly/2sL5L7W .

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_manager

Code

public function setFormClassPerFormModes(EntityTypeInterface $entity_definition, $form_mode_name);