ConfigEntityBase::save

public ConfigEntityBase::save() Saves an entity permanently. When saving existing entities, the entity is assumed to be complete, partial updates of entities are not supported. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed. Throws \Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown. Overrides Entity::save File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 636 Class ConfigEntityBase Defines a base

ConfigEntityBase::preSave

public ConfigEntityBase::preSave(EntityStorageInterface $storage) Acts on an entity before the presave hook is invoked. Used before the entity is saved and before invoking the presave hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. This is different from its counterpart in the Field API, FieldItemListInterface::preSave(), which is fired on all field translatio

ConfigEntityBase::preDelete

public static ConfigEntityBase::preDelete(EntityStorageInterface $storage, array $entities) Acts on entities before they are deleted and before hooks are invoked. Used before the entities are deleted and before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides Entity::preDelete File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 580

ConfigEntityBase::onDependencyRemoval

public ConfigEntityBase::onDependencyRemoval(array $dependencies) Informs the entity that entities it depends on will be deleted. This method allows configuration entities to remove dependencies instead of being deleted themselves. Configuration entities can use this method to avoid being unnecessarily deleted during an extension uninstallation. For example, entity displays remove references to widgets and formatters if the plugin that supplies them depends on a module that is being uninstalled

ConfigEntityBase::link

public ConfigEntityBase::link($text = NULL, $rel = 'edit-form', array $options = []) Deprecated way of generating a link to the entity. See toLink(). Parameters string|null $text: (optional) The link text for the anchor tag as a translated string. If NULL, it will use the entity's label. Defaults to NULL. string $rel: (optional) The link relationship type. Defaults to 'canonical'. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Ret

ConfigEntityBase::isUninstalling

public ConfigEntityBase::isUninstalling() Returns whether this entity is being changed during the uninstall process. If you are writing code that responds to a change in this entity (insert, update, delete, presave, etc.), and your code would result in a configuration change (whether related to this configuration entity, another configuration entity, or non-entity configuration) or your code would result in a change to this entity itself, you need to check and see if this entity change is part

ConfigEntityBase::isSyncing

public ConfigEntityBase::isSyncing() Returns whether this entity is being changed as part of an import process. If you are writing code that responds to a change in this entity (insert, update, delete, presave, etc.), and your code would result in a configuration change (whether related to this configuration entity, another configuration entity, or non-entity configuration) or your code would result in a change to this entity itself, you need to check and see if this entity change is part of an

ConfigEntityBase::isNew

public ConfigEntityBase::isNew() Overrides Entity::isNew(). EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique. Overrides Entity::isNew File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 150 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function isNew() { return !empty($this->enforceIsN

ConfigEntityBase::isInstallable

public ConfigEntityBase::isInstallable() Checks whether this entity is installable. For example, a default view might not be installable if the base table doesn't exist. @retun bool TRUE if the entity is installable, FALSE otherwise. Overrides ConfigEntityInterface::isInstallable File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 614 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function isInstallable()

ConfigEntityBase::invalidateTagsOnSave

protected ConfigEntityBase::invalidateTagsOnSave($update) Override to never invalidate the entity's cache tag; the config system already invalidates it. Overrides Entity::invalidateTagsOnSave File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 516 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code protected function invalidateTagsOnSave($update) { Cache::invalidateTags($this->getEntityType()->getListCacheTa