public function Element::__isset in Express 8
Magic isset method.
This is only for child elements, not properties.
Parameters
string $name: The name of the child element to check.
Return value
bool TRUE or FALSE
Throws
\InvalidArgumentException Throws this error when the name is a property (key starting with #).
Overrides ArrayObject::__isset
File
- themes/
contrib/ bootstrap/ src/ Utility/ Element.php, line 115 - Contains \Drupal\bootstrap\Utility\Element.
Class
- Element
- Provides helper methods for Drupal render elements.
Namespace
Drupal\bootstrap\UtilityCode
public function __isset($name) {
if (\Drupal\Core\Render\Element::property($name)) {
throw new \InvalidArgumentException('Cannot dynamically check if an element has a property. Use \\Drupal\\bootstrap\\Utility\\Element::unsetProperty instead.');
}
return parent::__isset($name);
}