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