function FormTestHooks::formFormTestVerticalTabsAccessFormAlter
Implements hook_form_FORM_ID_alter() for form_test_vertical_tabs_access_form().
File
-
core/
modules/ system/ tests/ modules/ form_test/ src/ Hook/ FormTestHooks.php, line 70
Class
- FormTestHooks
- Hook implementations for form_test.
Namespace
Drupal\form_test\HookCode
public function formFormTestVerticalTabsAccessFormAlter(&$form, &$form_state, $form_id) : void {
$form['vertical_tabs1']['#access'] = FALSE;
$form['vertical_tabs2']['#access'] = FALSE;
$form['tabs3']['#access'] = TRUE;
$form['fieldset1']['#access'] = FALSE;
$form['container']['#access'] = FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.