function public function Element::getProperty
8.x-3.x Element.php | public &Element::getProperty($name, $default = NULL) |
Retrieves the render array for the element.
Parameters
string $name: The name of the element property to retrieve, not including the Drupal.org | Drupal - Open Source CMS prefix.
mixed $default: The default to set if property does not exist.
Return value
mixed The property value, NULL if not set.
Class
- Element
- Provides helper methods for Drupal render elements.
Namespace
Drupal\bootstrap\UtilitySource src/Utility/Element.php (line 394)
public function &getProperty($name, $default = NULL) {
return $this->offsetGet("#$name", $default);
}