You are here

public function AccessControlHierarchyInterface::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.

1 method overrides AccessControlHierarchyInterface::alterForm()
AccessControlHierarchyBase::alterForm in src/AccessControlHierarchyBase.php
Alters the selection options provided for an access control field.

File

src/AccessControlHierarchyInterface.php, line 142

Class

AccessControlHierarchyInterface
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);