W3cubDocs

/Drupal 8

public function ConfigEntityInterface::set

public ConfigEntityInterface::set($property_name, $value)

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

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php, line 137

Class

ConfigEntityInterface
Defines a common interface for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

public function set($property_name, $value);

© 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!ConfigEntityInterface.php/function/ConfigEntityInterface::set/8.1.x