public function HierarchyEmbed::submitOptionsForm in Entity Reference Hierarchy 8
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
Overrides DisplayPluginBase::submitOptionsForm
File
- entity_hierarchy_views/
src/ Plugin/ views/ display/ HierarchyEmbed.php, line 86 - Contains \Drupal\entity_hierarchy_views\Plugin\views\display\HierarchyEmbed.
Class
- HierarchyEmbed
- The plugin that handles an HierarchyEmbed display.
Namespace
Drupal\entity_hierarchy_views\Plugin\views\displayCode
public function submitOptionsForm(&$form, FormStateInterface $form_state) {
parent::submitOptionsForm($form, $form_state);
$section = $form_state
->get('section');
switch ($section) {
case 'entity_hierarchy_embed_admin_name':
$this
->setOption('entity_hierarchy_embed_admin_name', $form_state['values']['entity_hierarchy_embed_admin_name']);
break;
}
}