ConfigEntityBase::toUrl

public ConfigEntityBase::toUrl($rel = 'edit-form', array $options = []) Gets the URL object for the entity. The entity must have an id already. Content entities usually get their IDs by saving them. URI templates might be set in the links array in an annotation, for example: links = { "canonical" = "/node/{node}", "edit-form" = "/node/{node}/edit", "version-history" = "/node/{node}/revisions" } or specified in a callback function set like: uri_callback = "comment_uri", If the path is

ConfigEntityBase::toArray

public ConfigEntityBase::toArray() Gets an array of all property values. Return value mixed[] An array of property values, keyed by property name. Overrides Entity::toArray File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 265 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function toArray() { $properties = array(); /** @var \Drupal\Core\Config\Entity\ConfigEntityTypeInterface $entity_type */ $en

ConfigEntityBase::status

public ConfigEntityBase::status() Returns whether the configuration entity is enabled. Status implementations for configuration entities should follow these general rules: Status does not affect the loading of entities. I.e. Disabling configuration entities should only have UI/access implications. It should only take effect when a 'status' key is explicitly declared in the entity_keys info of a configuration entity's annotation data. Each entity implementation (entity/controller) is responsible

ConfigEntityBase::sort

public static ConfigEntityBase::sort(ConfigEntityInterface $a, ConfigEntityInterface $b) Helper callback for uasort() to sort configuration entities by weight and label. File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 251 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) { $a_weight = isset($a->weight) ? $a->weight : 0; $b

ConfigEntityBase::setUninstalling

public ConfigEntityBase::setUninstalling($uninstalling) File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 226 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function setUninstalling($uninstalling) { $this->isUninstalling = $uninstalling; }

ConfigEntityBase::setThirdPartySetting

public ConfigEntityBase::setThirdPartySetting($module, $key, $value) Sets the value of a third-party setting. Parameters string $module: The module providing the third-party setting. string $key: The setting name. mixed $value: The setting value. Return value $this Overrides ThirdPartySettingsInterface::setThirdPartySetting File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 533 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Conf

ConfigEntityBase::setSyncing

public ConfigEntityBase::setSyncing($syncing) Sets the status of the isSyncing flag. Parameters bool $status: The status of the sync flag. Return value $this Overrides ConfigEntityInterface::setSyncing File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 210 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function setSyncing($syncing) { $this->isSyncing = $syncing; return $this; }

ConfigEntityBase::setStatus

public ConfigEntityBase::setStatus($status) Sets the status of the configuration entity. Parameters bool $status: The status of the configuration entity. Return value $this Overrides ConfigEntityInterface::setStatus File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 195 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function setStatus($status) { $this->status = (bool) $status; return $this; }

ConfigEntityBase::setOriginalId

public ConfigEntityBase::setOriginalId($id) Sets the original ID. Parameters int|string|null $id: The new ID to set as original ID. If the entity supports renames, setting NULL will prevent an update from being considered a rename. Return value $this Overrides Entity::setOriginalId File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 133 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function setOriginal

ConfigEntityBase::set

public ConfigEntityBase::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 Overrides ConfigEntityInterface::set File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 164 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function set($property_name, $