ImageStyle::getReplacementID

public ImageStyle::getReplacementID() Returns the replacement ID. Return value string|null The replacement image style ID or NULL if no replacement has been selected. Overrides ImageStyleInterface::getReplacementID Deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.x. Use \Drupal\image\ImageStyleStorageInterface::getReplacementId() instead. See also \Drupal\image\ImageStyleStorageInterface::getReplacementId() File core/modules/image/src/Entity/ImageStyle.php, line 380 Class

AdminContext

Provides a helper class to determine whether the route is an admin one. Hierarchy class \Drupal\Core\Routing\AdminContext File core/lib/Drupal/Core/Routing/AdminContext.php, line 10 Namespace Drupal\Core\Routing Members Name Modifiers Type Description AdminContext::$routeMatch protected property The route match. AdminContext::isAdminRoute public function Determines whether the active route is an admin one. AdminContext::__construct public function Constru

EntityTypeEvent::getEntityType

public EntityTypeEvent::getEntityType() The entity type the event refers to. Return value \Drupal\Core\Entity\EntityTypeInterface File core/lib/Drupal/Core/Entity/EntityTypeEvent.php, line 45 Class EntityTypeEvent Defines a base class for all entity type events. Namespace Drupal\Core\Entity Code public function getEntityType() { return $this->entityType; }

ContactFormListBuilder::buildRow

public ContactFormListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/contact/src/ContactFormListBuilder.php, line 28 Class ContactFormListBuilder Defines a class to bui

ConfigEntityInterface::getDependencies

public ConfigEntityInterface::getDependencies() Gets the configuration dependencies. Return value array An array of dependencies, keyed by $type. See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php, line 184 Class ConfigEntityInterface Defines a common interface for configuration entities. Namespace Drupal\Core\Config\Entity Code public function getDependencies();

DatabaseBackend::setMultiple

public DatabaseBackend::setMultiple(array $items) Store multiple items in the persistent cache. Parameters array $items: An array of cache items, keyed by cid. In the form: $items = array( $cid => array( // Required, will be automatically serialized if not a string. 'data' => $data, // Optional, defaults to CacheBackendInterface::CACHE_PERMANENT. 'expire' => CacheBackendInterface::CACHE_PERMANENT, // (optional) The cache tags for this item, see Cach

Truncate::__construct

public Truncate::__construct(Connection $connection, $table, array $options = array()) Constructs a Truncate query object. Parameters \Drupal\Core\Database\Connection $connection: A Connection object. string $table: Name of the table to associate with this query. array $options: Array of database options. Overrides Query::__construct File core/lib/Drupal/Core/Database/Query/Truncate.php, line 31 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Da

DatabaseBackendFactory::__construct

DatabaseBackendFactory::__construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider) Constructs the DatabaseBackendFactory object. Parameters \Drupal\Core\Database\Connection $connection: Database connection \Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: The cache tags checksum provider. File core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php, line 31 Class DatabaseBackendFactory Namespace Drupal\Core\Cache Code function __construct(Connect

Query::$sqlFields

An array of fields keyed by the field alias. Each entry correlates to the arguments of \Drupal\Core\Database\Query\SelectInterface::addField(), so the first one is the table alias, the second one the field and the last one optional the field alias. Type: array File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 34 Class Query The SQL storage entity query class. Namespace Drupal\Core\Entity\Query\Sql Code protected $sqlFields = array();

MenuActiveTrailsCacheContext::getCacheableMetadata

public MenuActiveTrailsCacheContext::getCacheableMetadata($menu_name = NULL) Gets the cacheability metadata for the context based on the parameter value. There are three valid cases for the returned CacheableMetadata object: An empty object means this can be optimized away safely. A max-age of 0 means that this context can never be optimized away. It will never bubble up and cache tags will not be used. Any non-zero max-age and cache tags will bubble up into the cache item if this is optimized