EntityStorageBase::buildPropertyQuery

protected EntityStorageBase::buildPropertyQuery(QueryInterface $entity_query, array $values) Builds an entity query. Parameters \Drupal\Core\Entity\Query\QueryInterface $entity_query: EntityQuery instance. array $values: An associative array of properties of the entity, where the keys are the property names and the values are the values those properties must have. File core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 489 Class EntityStorageBase A base entity storage class. Namesp

VariantInterface

Provides an interface for DisplayVariant plugins. Hierarchy interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ConfigurablePluginInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Core\Cache\RefinableCacheableDependencyInterfaceinterface \Drupal\Core\Display\VariantInterface See also \Drupal\Core\Display\Annotation\DisplayVariant \Drupal\Core\Display\VariantBase \Drupal\Core\Display\VariantManager Plugin API File co

Condition::__construct

public Condition::__construct($conjunction) Constructs a Condition object. Parameters string $conjunction: The operator to use to combine conditions: 'AND' or 'OR'. File core/lib/Drupal/Core/Database/Query/Condition.php, line 48 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code public function __construct($conjunction) { $this->conditions['#conjunction'] = $conjunction; }

UnchangingCacheableDependencyTrait::getCacheTags

public UnchangingCacheableDependencyTrait::getCacheTags() The cache tags associated with this object. When this object is modified, these cache tags will be invalidated. Return value string[] A set of cache tags. Overrides CacheableDependencyInterface::getCacheTags File core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php, line 22 Class UnchangingCacheableDependencyTrait Trait to implement CacheableDependencyInterface for unchanging objects. Namespace Drupal\Core\Cache Co

EntityManager::getViewModes

public EntityManager::getViewModes($entity_type_id) Overrides EntityDisplayRepositoryInterface::getViewModes Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 286 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function getViewModes($entity_type_id) { return $this->container->get('entity_display.repository')->getViewModes

BlockContent::getInstances

public BlockContent::getInstances() Gets the configured instances of this custom block. Return value array Array of Drupal\block\Core\Plugin\Entity\Block entities. Overrides BlockContentInterface::getInstances File core/modules/block_content/src/Entity/BlockContent.php, line 122 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function getInstances() { return \Drupal::entityTypeManager()->getStorage('block')->loadByPro

block_user_role_delete

block_user_role_delete($role) Implements hook_ENTITY_TYPE_delete() for user_role entities. Removes deleted role from blocks that use it. File core/modules/block/block.module, line 245 Controls the visual building blocks a page is constructed with. Code function block_user_role_delete($role) { foreach (Block::loadMultiple() as $block) { /** @var $block \Drupal\block\BlockInterface */ $visibility = $block->getVisibility(); if (isset($visibility['user_role']['roles'][$role->i

ContextualLinks::preRenderLinks

public static ContextualLinks::preRenderLinks(array $element) Pre-render callback: Builds a renderable array for contextual links. Parameters array $element: A renderable array containing a #contextual_links property, which is a keyed array. Each key is the name of the group of contextual links to render (based on the 'group' key in the *.links.contextual.yml files for all enabled modules). The value contains an associative array containing the following keys: route_parameters: The route para

StorageComparer::createRenameName

protected StorageComparer::createRenameName($name1, $name2) Creates a rename name from the old and new names for the object. Parameters string $old_name: The old configuration object name. string $new_name: The new configuration object name. Return value string The configuration change name that encodes both the old and the new name. See also \Drupal\Core\Config\StorageComparerInterface::extractRenameNames() File core/lib/Drupal/Core/Config/StorageComparer.php, line 436 Class StorageComp

RefinableCacheableDependencyInterface

Allows to add cacheability metadata to an object for the current runtime. This must be used when changing an object in a way that affects its cacheability. For example, when changing the active translation of an entity based on the current content language then a cache context for that must be added. Hierarchy interface \Drupal\Core\Cache\CacheableDependencyInterfaceinterface \Drupal\Core\Cache\RefinableCacheableDependencyInterface File core/lib/Drupal/Core/Cache/RefinableCacheableDependenc