function ConfigEntityBase::set
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::set()
- 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::set()
- 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::set()
4 calls to ConfigEntityBase::set()
- MediaType::setDescription in core/
modules/ media/ src/ Entity/ MediaType.php - Sets the entity description.
- MediaType::setFieldMap in core/
modules/ media/ src/ Entity/ MediaType.php - Sets the metadata field map.
- MediaType::setNewRevision in core/
modules/ media/ src/ Entity/ MediaType.php - Sets whether new revisions should be created by default.
- MediaType::setQueueThumbnailDownloadsStatus in core/
modules/ media/ src/ Entity/ MediaType.php - Sets a flag to indicate that thumbnails should be downloaded via a queue.
File
-
core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php, line 160
Class
- ConfigEntityBase
- Defines a base configuration entity class.
Namespace
Drupal\Core\Config\EntityCode
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.