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