public function FormModeManagerLinksForm::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.
Overrides FormModeManagerFormBase::setSettingsPerEntity
File
- src/
Form/ FormModeManagerLinksForm.php, line 110
Class
- FormModeManagerLinksForm
- Configure Form Mode Manager links.
Namespace
Drupal\form_mode_manager\FormCode
public function setSettingsPerEntity(FormStateInterface $form_state, array $form_modes, $entity_type_id) {
$this->settings
->set("local_tasks.{$entity_type_id}.position", $form_state
->getValue('tasks_location_' . $entity_type_id));
}