class PageVariant in Page Manager 8.4
Same name and namespace in other branches
- 8 src/Entity/PageVariant.php \Drupal\page_manager\Entity\PageVariant
Defines the page variant entity.
Plugin annotation
@ConfigEntityType(
id = "page_variant",
label = @Translation("Page Variant"),
handlers = {
"view_builder" = "Drupal\page_manager\Entity\PageVariantViewBuilder",
"access" = "Drupal\page_manager\Entity\PageVariantAccess",
},
admin_permission = "administer pages",
entity_keys = {
"id" = "id",
"label" = "label",
"uuid" = "uuid"
},
config_export = {
"id",
"label",
"uuid",
"variant",
"variant_settings",
"page",
"weight",
"selection_criteria",
"selection_logic",
"static_context",
},
lookup_keys = {
"page"
}
)
Hierarchy
- class \Drupal\Core\Entity\EntityBase implements EntityInterface uses RefinableCacheableDependencyTrait, DependencySerializationTrait
- class \Drupal\Core\Config\Entity\ConfigEntityBase implements ConfigEntityInterface uses SynchronizableEntityTrait, PluginDependencyTrait
- class \Drupal\page_manager\Entity\PageVariant implements PageVariantInterface
- class \Drupal\Core\Config\Entity\ConfigEntityBase implements ConfigEntityInterface uses SynchronizableEntityTrait, PluginDependencyTrait
Expanded class hierarchy of PageVariant
14 files declare their use of PageVariant
- FrontPageTest.php in tests/
src/ Functional/ FrontPageTest.php - PageConfigSchemaTest.php in tests/
src/ Kernel/ PageConfigSchemaTest.php - PageManagerAdminTest.php in page_manager_ui/
tests/ src/ Functional/ PageManagerAdminTest.php - PageManagerConfigTranslationTest.php in tests/
src/ Functional/ PageManagerConfigTranslationTest.php - PageManagerRoutingTest.php in tests/
src/ Kernel/ PageManagerRoutingTest.php
File
- src/
Entity/ PageVariant.php, line 47
Namespace
Drupal\page_manager\EntityView source
class PageVariant extends ConfigEntityBase implements PageVariantInterface {
/**
* The ID of the page variant entity.
*
* @var string
*/
protected $id;
/**
* The label of the page variant entity.
*
* @var string
*/
protected $label;
/**
* The weight of the page variant entity.
*
* @var int
*/
protected $weight = 0;
/**
* The UUID of the page variant entity.
*
* @var string
*/
protected $uuid;
/**
* The ID of the variant plugin.
*
* @var string
*/
protected $variant;
/**
* The plugin configuration for the variant plugin.
*
* @var array
*/
protected $variant_settings = [];
/**
* The ID of the page entity this page variant entity belongs to.
*
* @var string
*/
protected $page;
/**
* The loaded page entity this page variant entity belongs to.
*
* @var \Drupal\page_manager\PageInterface
*/
protected $pageEntity;
/**
* The plugin configuration for the selection criteria condition plugins.
*
* @var array
*/
protected $selection_criteria = [];
/**
* The selection logic for this page variant entity (either 'and' or 'or').
*
* @var string
*/
protected $selection_logic = 'and';
/**
* An array of collected contexts.
*
* @var \Drupal\Component\Plugin\Context\ContextInterface[]|null
*/
protected $contexts = NULL;
/**
* Static context references.
*
* A list of arrays with the keys name, label, type and value.
*
* @var array[]
*/
protected $static_context = [];
/**
* The plugin collection that holds the single variant plugin instance.
*
* @var \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection
*/
protected $variantPluginCollection;
/**
* The plugin collection that holds the selection condition plugins.
*
* @var \Drupal\Component\Plugin\LazyPluginCollection
*/
protected $selectionConditionCollection;
/**
* {@inheritdoc}
*/
protected function invalidateTagsOnSave($update) {
parent::invalidateTagsOnSave($update);
// The parent doesn't invalidate the entity cache tags on save because the
// config system will invalidate them, but since we're using the parent
// page's cache tags, we need to invalidate them special.
Cache::invalidateTags($this
->getCacheTagsToInvalidate());
}
/**
* {@inheritdoc}
*/
protected static function invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities) {
parent::invalidateTagsOnDelete($entity_type, $entities);
// The parent doesn't invalidate the entity cache tags on delete because the
// config system will invalidate them, but since we're using the parent
// page's cache tags, we need to invalidate them special.
$tags = [];
foreach ($entities as $entity) {
$tags = Cache::mergeTags($tags, $entity
->getCacheTagsToInvalidate());
}
Cache::invalidateTags($tags);
}
/**
* {@inheritdoc}
*/
public function getCacheTagsToInvalidate() {
// We use the same cache tags as the parent page.
return $this
->getPage()
->getCacheTagsToInvalidate();
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
parent::calculateDependencies();
$this
->addDependency('config', $this
->getPage()
->getConfigDependencyName());
foreach ($this
->getSelectionConditions() as $instance) {
$this
->calculatePluginDependencies($instance);
}
return $this
->getDependencies();
}
/**
* {@inheritdoc}
*/
public function getPluginCollections() {
return [
'selection_criteria' => $this
->getSelectionConditions(),
'variant_settings' => $this
->getVariantPluginCollection(),
];
}
/**
* Get the plugin collection that holds the single variant plugin instance.
*
* @return \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection
* The plugin collection that holds the single variant plugin instance.
*/
protected function getVariantPluginCollection() {
if (!$this->variantPluginCollection) {
if (empty($this->variant_settings['uuid'])) {
$this->variant_settings['uuid'] = $this
->uuidGenerator()
->generate();
}
$this->variantPluginCollection = new DefaultSingleLazyPluginCollection(\Drupal::service('plugin.manager.display_variant'), $this->variant, $this->variant_settings);
}
return $this->variantPluginCollection;
}
/**
* {@inheritdoc}
*/
public function getVariantPlugin() {
return $this
->getVariantPluginCollection()
->get($this->variant);
}
/**
* {@inheritdoc}
*/
public function getVariantPluginId() {
return $this->variant;
}
/**
* {@inheritdoc}
*/
public function setVariantPluginId($variant) {
$this->variant = $variant;
return $this;
}
/**
* {@inheritdoc}
*/
public function getPage() {
if (!$this->pageEntity) {
if (!$this->page) {
throw new \UnexpectedValueException('The page variant has no associated page');
}
$this->pageEntity = $this
->getPageStorage()
->load($this->page);
if (!$this->pageEntity) {
throw new \UnexpectedValueException(sprintf('The page %s could not be loaded', $this->page));
}
}
return $this->pageEntity;
}
/**
* {@inheritdoc}
*/
public function setPageEntity(PageInterface $page) {
$this->pageEntity = $page;
$this->page = $page
->id();
return $this;
}
/**
* {@inheritdoc}
*/
public function getContexts() {
if (is_null($this->contexts)) {
$static_contexts = $this
->getContextMapper()
->getContextValues($this
->getStaticContexts());
$page_contexts = $this
->getPage()
->getContexts();
$this->contexts = $page_contexts + $static_contexts;
}
return $this->contexts;
}
/**
* {@inheritdoc}
*/
public function resetCollectedContexts() {
$this->contexts = NULL;
return $this;
}
/**
* {@inheritdoc}
*/
public function getWeight() {
return $this->weight;
}
/**
* {@inheritdoc}
*/
public function setWeight($weight) {
$this->weight = $weight;
return $this;
}
/**
* {@inheritdoc}
*/
public function getSelectionLogic() {
return $this
->get('selection_logic');
}
/**
* {@inheritdoc}
*/
protected function getSelectionConfiguration() {
return $this
->get('selection_criteria');
}
/**
* {@inheritdoc}
*/
public function getSelectionConditions() {
if (!$this->selectionConditionCollection) {
$this->selectionConditionCollection = new ConditionPluginCollection($this
->getConditionManager(), $this
->getSelectionConfiguration());
}
return $this->selectionConditionCollection;
}
/**
* {@inheritdoc}
*/
public function addSelectionCondition(array $configuration) {
$configuration['uuid'] = $this
->uuidGenerator()
->generate();
$this
->getSelectionConditions()
->addInstanceId($configuration['uuid'], $configuration);
return $configuration['uuid'];
}
/**
* {@inheritdoc}
*/
public function getSelectionCondition($condition_id) {
return $this
->getSelectionConditions()
->get($condition_id);
}
/**
* {@inheritdoc}
*/
public function removeSelectionCondition($condition_id) {
$this
->getSelectionConditions()
->removeInstanceId($condition_id);
return $this;
}
/**
* {@inheritdoc}
*/
public function getStaticContexts() {
return $this->static_context;
}
/**
* {@inheritdoc}
*/
public function getStaticContext($name) {
if (isset($this->static_context[$name])) {
return $this->static_context[$name];
}
return [];
}
/**
* {@inheritdoc}
*/
public function setStaticContext($name, $configuration) {
$this->static_context[$name] = $configuration;
$this
->resetCollectedContexts();
return $this;
}
/**
* {@inheritdoc}
*/
public function removeStaticContext($name) {
unset($this->static_context[$name]);
$this
->resetCollectedContexts();
return $this;
}
/**
* {@inheritdoc}
*/
protected function urlRouteParameters($rel) {
$parameters = parent::urlRouteParameters($rel);
$parameters['page'] = $this
->get('page');
return $parameters;
}
/**
* {@inheritdoc}
*/
public function postSave(EntityStorageInterface $storage, $update = TRUE) {
parent::postSave($storage, $update);
static::routeBuilder()
->setRebuildNeeded();
}
/**
* {@inheritdoc}
*/
public static function postDelete(EntityStorageInterface $storage, array $entities) {
parent::postDelete($storage, $entities);
static::routeBuilder()
->setRebuildNeeded();
}
/**
* Wraps the route builder.
*
* @return \Drupal\Core\Routing\RouteBuilderInterface
* An object for state storage.
*/
protected static function routeBuilder() {
return \Drupal::service('router.builder');
}
/**
* Wraps the condition plugin manager.
*
* @return \Drupal\Core\Condition\ConditionManager
* The condition manager service.
*/
protected function getConditionManager() {
return \Drupal::service('plugin.manager.condition');
}
/**
* Wraps the context mapper.
*
* @return \Drupal\page_manager\ContextMapperInterface
* The context mapper service.
*/
protected function getContextMapper() {
return \Drupal::service('page_manager.context_mapper');
}
/**
* Wraps the page entity storage.
*
* @return \Drupal\Core\Entity\EntityStorageInterface
* The Page entity storage service.
*/
protected function getPageStorage() {
return \Drupal::entityTypeManager()
->getStorage('page');
}
/**
* {@inheritdoc}
*/
public function __sleep() {
$vars = parent::__sleep();
// Gathered contexts objects should not be serialized.
if (($key = array_search('contexts', $vars)) !== FALSE) {
unset($vars[$key]);
}
return $vars;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableDependencyTrait:: |
protected | property | Cache contexts. | |
CacheableDependencyTrait:: |
protected | property | Cache max-age. | |
CacheableDependencyTrait:: |
protected | property | Cache tags. | |
CacheableDependencyTrait:: |
protected | function | Sets cacheability; useful for value object constructors. | |
ConfigEntityBase:: |
private | property | Whether the config is being deleted by the uninstall process. | |
ConfigEntityBase:: |
protected | property | The language code of the entity's default language. | |
ConfigEntityBase:: |
protected | property | The original ID of the configuration entity. | |
ConfigEntityBase:: |
protected | property | The enabled/disabled status of the configuration entity. | 4 |
ConfigEntityBase:: |
protected | property | Third party entity settings. | |
ConfigEntityBase:: |
protected | property | Trust supplied data and not use configuration schema on save. | |
ConfigEntityBase:: |
protected | property | Information maintained by Drupal core about configuration. | |
ConfigEntityBase:: |
protected | function | Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). | |
ConfigEntityBase:: |
public | function |
Creates a duplicate of the entity. Overrides EntityBase:: |
1 |
ConfigEntityBase:: |
public | function |
Disables the configuration entity. Overrides ConfigEntityInterface:: |
1 |
ConfigEntityBase:: |
public | function |
Enables the configuration entity. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Returns the value of a property. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Gets the configuration dependency name. Overrides EntityBase:: |
|
ConfigEntityBase:: |
protected static | function | Gets the configuration manager. | |
ConfigEntityBase:: |
public | function |
Gets the configuration target identifier for the entity. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Gets the configuration dependencies. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Gets the original ID. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Gets the list of third parties that store information. Overrides ThirdPartySettingsInterface:: |
|
ConfigEntityBase:: |
public | function |
Gets the value of a third-party setting. Overrides ThirdPartySettingsInterface:: |
|
ConfigEntityBase:: |
public | function |
Gets all third-party settings of a given module. Overrides ThirdPartySettingsInterface:: |
|
ConfigEntityBase:: |
protected | function | Gets the typed config manager. | |
ConfigEntityBase:: |
public | function |
Gets whether on not the data is trusted. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Checks whether this entity is installable. Overrides ConfigEntityInterface:: |
2 |
ConfigEntityBase:: |
public | function |
Overrides Entity::isNew(). Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Returns whether this entity is being changed during the uninstall process. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Deprecated way of generating a link to the entity. See toLink(). Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Informs the entity that entities it depends on will be deleted. Overrides ConfigEntityInterface:: |
7 |
ConfigEntityBase:: |
public static | function |
Acts on entities before they are deleted and before hooks are invoked. Overrides EntityBase:: |
8 |
ConfigEntityBase:: |
public | function |
Acts on an entity before the presave hook is invoked. Overrides EntityBase:: |
13 |
ConfigEntityBase:: |
public | function |
Saves an entity permanently. Overrides EntityBase:: |
1 |
ConfigEntityBase:: |
public | function |
Sets the value of a property. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Sets the original ID. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Sets the status of the configuration entity. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Sets the value of a third-party setting. Overrides ThirdPartySettingsInterface:: |
|
ConfigEntityBase:: |
public | function | ||
ConfigEntityBase:: |
public static | function | Helper callback for uasort() to sort configuration entities by weight and label. | 6 |
ConfigEntityBase:: |
public | function |
Returns whether the configuration entity is enabled. Overrides ConfigEntityInterface:: |
4 |
ConfigEntityBase:: |
public | function |
Gets an array of all property values. Overrides EntityBase:: |
2 |
ConfigEntityBase:: |
public | function |
Gets the URL object for the entity. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Sets that the data should be trusted. Overrides ConfigEntityInterface:: |
|
ConfigEntityBase:: |
public | function |
Unsets a third-party setting. Overrides ThirdPartySettingsInterface:: |
|
ConfigEntityBase:: |
public | function |
Gets the public URL for this entity. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Gets the URL object for the entity. Overrides EntityBase:: |
|
ConfigEntityBase:: |
public | function |
Constructs an Entity object. Overrides EntityBase:: |
10 |
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | Aliased as: traitSleep | 1 |
DependencySerializationTrait:: |
public | function | 2 | |
DependencyTrait:: |
protected | property | The object's dependencies. | |
DependencyTrait:: |
protected | function | Adds multiple dependencies. | |
DependencyTrait:: |
protected | function | Adds a dependency. Aliased as: addDependencyTrait | |
EntityBase:: |
protected | property | Boolean indicating whether the entity should be forced to be new. | |
EntityBase:: |
protected | property | The entity type. | |
EntityBase:: |
protected | property | A typed data object wrapping this entity. | |
EntityBase:: |
public | function |
Checks data value access. Overrides AccessibleInterface:: |
1 |
EntityBase:: |
public | function |
Gets the bundle of the entity. Overrides EntityInterface:: |
1 |
EntityBase:: |
public static | function |
Constructs a new entity object, without permanently saving it. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Deletes an entity permanently. Overrides EntityInterface:: |
2 |
EntityBase:: |
public | function |
Enforces an entity to be new. Overrides EntityInterface:: |
|
EntityBase:: |
protected | function | Gets the entity manager. | |
EntityBase:: |
protected | function | Gets the entity type bundle info service. | |
EntityBase:: |
protected | function | Gets the entity type manager. | |
EntityBase:: |
public | function |
The cache contexts associated with this object. Overrides CacheableDependencyTrait:: |
|
EntityBase:: |
public | function |
The maximum age for which this object may be cached. Overrides CacheableDependencyTrait:: |
|
EntityBase:: |
public | function |
The cache tags associated with this object. Overrides CacheableDependencyTrait:: |
|
EntityBase:: |
public | function |
Gets the key that is used to store configuration dependencies. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Gets the entity type definition. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Gets the ID of the type of the entity. Overrides EntityInterface:: |
|
EntityBase:: |
protected | function | The list cache tags to invalidate for this entity. | |
EntityBase:: |
public | function |
Gets a typed data object for this entity object. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Indicates if a link template exists for a given key. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Gets the identifier. Overrides EntityInterface:: |
11 |
EntityBase:: |
public | function |
Gets the label of the entity. Overrides EntityInterface:: |
6 |
EntityBase:: |
public | function |
Gets the language of the entity. Overrides EntityInterface:: |
1 |
EntityBase:: |
protected | function | Gets the language manager. | |
EntityBase:: |
protected | function | Gets an array link templates. | 1 |
EntityBase:: |
public static | function |
Loads an entity. Overrides EntityInterface:: |
|
EntityBase:: |
public static | function |
Loads one or more entities. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Acts on a created entity before hooks are invoked. Overrides EntityInterface:: |
4 |
EntityBase:: |
public static | function |
Acts on loaded entities. Overrides EntityInterface:: |
2 |
EntityBase:: |
public static | function |
Changes the values of an entity before it is created. Overrides EntityInterface:: |
5 |
EntityBase:: |
public | function |
Gets a list of entities referenced by this entity. Overrides EntityInterface:: |
1 |
EntityBase:: |
public | function |
Generates the HTML for a link to this entity. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Gets a list of URI relationships supported by this entity. Overrides EntityInterface:: |
|
EntityBase:: |
public | function |
Gets the entity UUID (Universally Unique Identifier). Overrides EntityInterface:: |
1 |
EntityBase:: |
protected | function | Gets the UUID generator. | |
PageVariant:: |
protected | property | An array of collected contexts. | |
PageVariant:: |
protected | property | The ID of the page variant entity. | |
PageVariant:: |
protected | property | The label of the page variant entity. | |
PageVariant:: |
protected | property | The ID of the page entity this page variant entity belongs to. | |
PageVariant:: |
protected | property | The loaded page entity this page variant entity belongs to. | |
PageVariant:: |
protected | property | The plugin collection that holds the selection condition plugins. | |
PageVariant:: |
protected | property | The plugin configuration for the selection criteria condition plugins. | |
PageVariant:: |
protected | property | The selection logic for this page variant entity (either 'and' or 'or'). | |
PageVariant:: |
protected | property | Static context references. | |
PageVariant:: |
protected | property |
The UUID of the page variant entity. Overrides ConfigEntityBase:: |
|
PageVariant:: |
protected | property | The ID of the variant plugin. | |
PageVariant:: |
protected | property | The plugin collection that holds the single variant plugin instance. | |
PageVariant:: |
protected | property | The plugin configuration for the variant plugin. | |
PageVariant:: |
protected | property | The weight of the page variant entity. | |
PageVariant:: |
public | function |
Adds selection criteria. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Calculates dependencies and stores them in the dependency property. Overrides ConfigEntityBase:: |
|
PageVariant:: |
public | function |
Returns the cache tags that should be used to invalidate caches. Overrides ConfigEntityBase:: |
|
PageVariant:: |
protected | function | Wraps the condition plugin manager. | |
PageVariant:: |
protected | function | Wraps the context mapper. | |
PageVariant:: |
public | function |
Gets the values for all defined contexts. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Gets the page this variant is on. Overrides PageVariantInterface:: |
|
PageVariant:: |
protected | function | Wraps the page entity storage. | |
PageVariant:: |
public | function |
Gets the plugin collections used by this object. Overrides ObjectWithPluginCollectionInterface:: |
|
PageVariant:: |
public | function |
Gets selection criteria by condition id. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Gets the selection condition collection. Overrides PageVariantInterface:: |
|
PageVariant:: |
protected | function | ||
PageVariant:: |
public | function |
Gets the selection logic used by the criteria (ie. "and" or "or"). Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Retrieves a specific static context. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Returns the static context configurations for this page entity. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Gets the variant plugin. Overrides PageVariantInterface:: |
|
PageVariant:: |
protected | function | Get the plugin collection that holds the single variant plugin instance. | |
PageVariant:: |
public | function |
Gets the plugin ID of the variant plugin. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Gets the weight of this variant (compared to other variants on the page). Overrides PageVariantInterface:: |
|
PageVariant:: |
protected static | function |
Override to never invalidate the individual entities' cache tags; the
config system already invalidates them. Overrides ConfigEntityBase:: |
|
PageVariant:: |
protected | function |
Override to never invalidate the entity's cache tag; the config system
already invalidates it. Overrides ConfigEntityBase:: |
|
PageVariant:: |
public static | function |
Acts on deleted entities before the delete hook is invoked. Overrides EntityBase:: |
|
PageVariant:: |
public | function |
Acts on a saved entity before the insert or update hook is invoked. Overrides EntityBase:: |
|
PageVariant:: |
public | function |
Removes selection criteria by condition id. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Removes a specific static context. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Resets the collected contexts. Overrides PageVariantInterface:: |
|
PageVariant:: |
protected static | function | Wraps the route builder. | |
PageVariant:: |
public | function |
Sets the page with a full entity object. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Adds/updates a given static context. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Sets the plugin ID of the variant plugin without loading the Plugin
collections. Overrides PageVariantInterface:: |
|
PageVariant:: |
public | function |
Sets the weight of this variant (compared to other variants on the page). Overrides PageVariantInterface:: |
|
PageVariant:: |
protected | function |
Gets an array of placeholders for this entity. Overrides EntityBase:: |
|
PageVariant:: |
public | function |
Overrides ConfigEntityBase:: |
|
PluginDependencyTrait:: |
protected | function | Calculates and adds dependencies of a specific plugin instance. | 1 |
PluginDependencyTrait:: |
protected | function | Calculates and returns dependencies of a specific plugin instance. | |
PluginDependencyTrait:: |
protected | function | Wraps the module handler. | 1 |
PluginDependencyTrait:: |
protected | function | Wraps the theme handler. | 1 |
RefinableCacheableDependencyTrait:: |
public | function | 1 | |
RefinableCacheableDependencyTrait:: |
public | function | ||
RefinableCacheableDependencyTrait:: |
public | function | ||
RefinableCacheableDependencyTrait:: |
public | function | ||
SynchronizableEntityTrait:: |
protected | property | Whether this entity is being created, updated or deleted through a synchronization process. | |
SynchronizableEntityTrait:: |
public | function | ||
SynchronizableEntityTrait:: |
public | function |