You are here

public function AccessControlHierarchyBase::alterForm in Workbench Access 8

Alters the selection options provided for an access control field.

Parameters

\Drupal\workbench_access\Entity\AccessSchemeInterface $scheme: Access scheme.

array $form: The content entry form to alter.

\Drupal\Core\Form\FormStateInterface $form_state: Active form state data.

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity object that the form is modifying.

Overrides AccessControlHierarchyInterface::alterForm

2 methods override AccessControlHierarchyBase::alterForm()
Menu::alterForm in src/Plugin/AccessControlHierarchy/Menu.php
Alters the selection options provided for an access control field.
Taxonomy::alterForm in src/Plugin/AccessControlHierarchy/Taxonomy.php
Alters the selection options provided for an access control field.

File

src/AccessControlHierarchyBase.php, line 329

Class

AccessControlHierarchyBase
Defines a base hierarchy class that others may extend.

Namespace

Drupal\workbench_access

Code

public function alterForm(AccessSchemeInterface $scheme, array &$form, FormStateInterface &$form_state, ContentEntityInterface $entity) {

  // Default implementation is empty.
}