You are here

private static function ElementBase::noElementAccess in Select (or other) 4.x

Same name and namespace in other branches
  1. 8 src/Element/ElementBase.php \Drupal\select_or_other\Element\ElementBase::noElementAccess()

Parameters

array $element: The element to check for access.

Return value

bool Whether or not the element may be accessed.

1 call to ElementBase::noElementAccess()
ElementBase::valueCallback in src/Element/ElementBase.php
Determines how user input is mapped to an element's #value property.

File

src/Element/ElementBase.php, line 74

Class

ElementBase
Base class for select or other form elements.

Namespace

Drupal\select_or_other\Element

Code

private static function noElementAccess($element) {
  return isset($element['#access']) && !$element['#access'];
}