You are here

abstract public function FormModeManagerFormBase::setSettingsPerEntity in Form mode manager 8.2

Set settings per compatible entities.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

array $form_modes: The form modes collection for given entity type.

string $entity_type_id: The entity type ID of entity.

Return value

$this|false The form Object.

1 call to FormModeManagerFormBase::setSettingsPerEntity()
FormModeManagerFormBase::setFormModeFormSettings in src/Form/FormModeManagerFormBase.php
Set Form Mode Manager settings from form for each entity and form modes.
4 methods override FormModeManagerFormBase::setSettingsPerEntity()
FormModeManagerForm::setSettingsPerEntity in src/Form/FormModeManagerForm.php
Set settings per compatible entities.
FormModeManagerLinksForm::setSettingsPerEntity in src/Form/FormModeManagerLinksForm.php
Set settings per compatible entities.
FormModeManagerRolesForm::setSettingsPerEntity in modules/form_mode_user_roles_assign/src/Form/FormModeManagerRolesForm.php
Set settings per compatible entities.
FormModeThemeSwitcherForm::setSettingsPerEntity in modules/form_mode_theme_switcher/src/Form/FormModeThemeSwitcherForm.php
Set settings per compatible entities.

File

src/Form/FormModeManagerFormBase.php, line 222

Class

FormModeManagerFormBase
Base for implementing system configuration forms for Form Mode Manager.

Namespace

Drupal\form_mode_manager\Form

Code

public abstract function setSettingsPerEntity(FormStateInterface $form_state, array $form_modes, $entity_type_id);