You are here

public function SimpleAccessGroupListBuilder::validateForm in Simple Access 8.3

Form validation handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides DraggableListBuilder::validateForm

File

src/Controller/SimpleAccessGroupListBuilder.php, line 54

Class

SimpleAccessGroupListBuilder
Provides Drupal\simple_access\Controller\SimpleAccessGroupListBuilder.

Namespace

Drupal\simple_access\Controller

Code

public function validateForm(array &$form, FormStateInterface $form_state) {

  // Unset the weight for owner as it is always the highest value.
  $form_state
    ->unsetValue('entities[owner][weight]');
}