ConfigEntityBundleBase::postDelete

public static ConfigEntityBundleBase::postDelete(EntityStorageInterface $storage, array $entities) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but 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::postDelete File core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php, line 59

ConfigEntityBundleBase::loadDisplays

protected ConfigEntityBundleBase::loadDisplays($entity_type_id) Returns view or form displays for this bundle. Parameters string $entity_type_id: The entity type ID of the display type to load. Return value \Drupal\Core\Entity\Display\EntityDisplayInterface[] A list of matching displays. File core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php, line 104 Class ConfigEntityBundleBase A base class for config entity types that act as bundles. Namespace Drupal\Core\Config\Entity

ConfigEntityBundleBase::deleteDisplays

protected ConfigEntityBundleBase::deleteDisplays() Deletes display if a bundle is deleted. File core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php, line 19 Class ConfigEntityBundleBase A base class for config entity types that act as bundles. Namespace Drupal\Core\Config\Entity Code protected function deleteDisplays() { // Remove entity displays of the deleted bundle. if ($displays = $this->loadDisplays('entity_view_display')) { $storage = $this->entityManager(

ConfigEntityBundleBase

A base class for config entity types that act as bundles. Entity types that want to use this base class must use bundle_of in their annotation to specify for which entity type they are providing bundles for. Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterface uses RefinableCacheableDependencyTrait, DependencySerializationTraitclass \Drupal\Core\Config\Entity\ConfigEntityBase implements ConfigEntityInterface uses PluginDependencyTraitclass \Drupal\Core\Config\Entity\ConfigEntit

ConfigEntityBase::__sleep

public ConfigEntityBase::__sleep() Overrides Entity::__sleep File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 353 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function __sleep() { $keys_to_unset = []; if ($this instanceof EntityWithPluginCollectionInterface) { $vars = get_object_vars($this); foreach ($this->getPluginCollections() as $plugin_config_key => $plugin_collection) {

ConfigEntityBase::__construct

public ConfigEntityBase::__construct(array $values, $entity_type) Constructs an Entity object. Parameters array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified. string $entity_type: The type of the entity to create. Overrides Entity::__construct File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 112 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config

ConfigEntityBase::urlInfo

public ConfigEntityBase::urlInfo($rel = 'edit-form', array $options = []) Gets the URL object for the entity. Parameters string $rel: The link relationship type, for example: canonical or edit-form. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Return value \Drupal\Core\Url The URL object. Overrides Entity::urlInfo Deprecated in Drupal 8.0.0, intended to be removed in Drupal 9.0.0 Use \Drupal\Core\Entity\EntityInterface::toUrl

ConfigEntityBase::url

public ConfigEntityBase::url($rel = 'edit-form', $options = array()) Gets the public URL for this entity. Parameters string $rel: The link relationship type, for example: canonical or edit-form. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Return value string The URL for this entity. Overrides Entity::url Deprecated in Drupal 8.0.0, intended to be removed in Drupal 9.0.0 Please use toUrl() instead. See also \Drupal\Core\Ent

ConfigEntityBase::unsetThirdPartySetting

public ConfigEntityBase::unsetThirdPartySetting($module, $key) Unsets a third-party setting. Parameters string $module: The module providing the third-party setting. string $key: The setting name. Return value mixed The value. Overrides ThirdPartySettingsInterface::unsetThirdPartySetting File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 560 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function unset

ConfigEntityBase::trustData

public ConfigEntityBase::trustData() Sets that the data should be trusted. If the data is trusted then dependencies will not be calculated on save and schema will not be used to cast the values. Generally this is only used during module and theme installation. Once the config entity has been saved the data will no longer be marked as trusted. This is an optimization for creation of configuration during installation. Return value $this Overrides ConfigEntityInterface::trustData See also \Drupa