public function ViewUI::set in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::set()
- 10 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::set()
Sets the value of a property.
Parameters
string $property_name: The name of the property that should be set.
mixed $value: The value the property should be set to.
Return value
$this
Overrides ConfigEntityInterface::set
File
- core/
modules/ views_ui/ src/ ViewUI.php, line 173
Class
- ViewUI
- Stores UI related temporary settings.
Namespace
Drupal\views_uiCode
public function set($property_name, $value, $notify = TRUE) {
if (property_exists($this->storage, $property_name)) {
$this->storage
->set($property_name, $value);
}
else {
$this->{$property_name} = $value;
}
}