function RenderElementBase::__get
Magic method: gets a property value.
Parameters
string $name: The name of the property. $value is accessible with $this->name and also $element['#' . $name] where the element is the render array this object was created from.
Return value
mixed The value.
File
-
core/
lib/ Drupal/ Core/ Render/ Element/ RenderElementBase.php, line 613
Class
- RenderElementBase
- Provides a base class for render element plugins.
Namespace
Drupal\Core\Render\ElementCode
public function __get(string $name) : mixed {
return $this->storage['#' . $name] ?? NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.