private static function ElementBase::elementIsDisabled in Select (or other) 8
Same name and namespace in other branches
- 4.x src/Element/ElementBase.php \Drupal\select_or_other\Element\ElementBase::elementIsDisabled()
Parameters
array $element: The element to check for enabled state.
Return value
bool Whether or not the element is disabled.
1 call to ElementBase::elementIsDisabled()
- 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 63
Class
- ElementBase
- Base class for select or other form elements.
Namespace
Drupal\select_or_other\ElementCode
private static function elementIsDisabled($element) {
return isset($element['#disabled']) && $element['#disabled'];
}