public ConfigEntityBase::set($property_name, $value)
Sets the value of a property.
string $property_name: The name of the property that should be set.
mixed $value: The value the property should be set to.
$this
Overrides ConfigEntityInterface::set
public function set($property_name, $value) { if ($this instanceof EntityWithPluginCollectionInterface) { $plugin_collections = $this->getPluginCollections(); if (isset($plugin_collections[$property_name])) { // If external code updates the settings, pass it along to the plugin. $plugin_collections[$property_name]->setConfiguration($value); } } $this->{$property_name} = $value; return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityBase.php/function/ConfigEntityBase::set/8.1.x