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
Namespace
Drupal\simple_access\ControllerCode
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]');
}