locale_translation_status_delete_projects

locale_translation_status_delete_projects($projects) Delete project entries from the status cache. Parameters array $projects: Project name(s) to be deleted from the cache. File core/modules/locale/locale.module, line 992 Enables the translation of the user interface to languages other than English. Code function locale_translation_status_delete_projects($projects) { $status = locale_translation_get_status(); foreach ($status as $project => $languages) { if (in_array($project, $p

StringStorageInterface::countStrings

public StringStorageInterface::countStrings() Counts source strings. Return value int The number of source strings contained in the storage. File core/modules/locale/src/StringStorageInterface.php, line 148 Class StringStorageInterface Defines the locale string storage interface. Namespace Drupal\locale Code public function countStrings();

ActiveTheme::getLibraries

public ActiveTheme::getLibraries() Returns the libraries provided by the theme. Return value mixed File core/lib/Drupal/Core/Theme/ActiveTheme.php, line 170 Class ActiveTheme Defines a theme and its information needed at runtime. Namespace Drupal\Core\Theme Code public function getLibraries() { return $this->libraries; }

ResponsiveImageStyleListBuilder::buildRow

public ResponsiveImageStyleListBuilder::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/responsive_image/src/ResponsiveImageStyleListBuilder.php, line 25 Class ResponsiveImageStyl

NodeGrantDatabaseStorage::buildGrantsQueryCondition

protected static NodeGrantDatabaseStorage::buildGrantsQueryCondition(array $node_access_grants) Creates a query condition from an array of node access grants. Parameters array $node_access_grants: An array of grants, as returned by node_access_grants(). Return value \Drupal\Core\Database\Query\Condition A condition object to be passed to $query->condition(). See also node_access_grants() File core/modules/node/src/NodeGrantDatabaseStorage.php, line 293 Class NodeGrantDatabaseStorage

Schema::addUniqueKey

Schema::addUniqueKey($table, $name, $fields) Add a unique key. Parameters $table: The table to be altered. $name: The name of the key. $fields: An array of field names. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table doesn't exist. \Drupal\Core\Database\SchemaObjectExistsException If the specified table already has a key by that name. Overrides Schema::addUniqueKey File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 642 Class Schema Post

FieldAPIHandlerTrait::getFieldStorageDefinition

protected FieldAPIHandlerTrait::getFieldStorageDefinition() Gets the field storage configuration. Return value \Drupal\field\FieldStorageConfigInterface The field storage definition used by this handler File core/modules/views/src/FieldAPIHandlerTrait.php, line 53 Class FieldAPIHandlerTrait A trait containing helper methods for field definitions. Namespace Drupal\views Code protected function getFieldStorageDefinition() { if (!$this->fieldStorageDefinition) { $field_storage_d

BlockListBuilder::createInstance

public static BlockListBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Dependen

ConfigCacheTag::onSave

public ConfigCacheTag::onSave(ConfigCrudEvent $event) Invalidate cache tags when particular system config objects are saved. Parameters \Drupal\Core\Config\ConfigCrudEvent $event: The Event to process. File core/modules/system/src/EventSubscriber/ConfigCacheTag.php, line 49 Class ConfigCacheTag A subscriber invalidating cache tags when system config objects are saved. Namespace Drupal\system\EventSubscriber Code public function onSave(ConfigCrudEvent $event) { // Changing the site s

DenyNodePreview::check

public DenyNodePreview::check(Response $response, Request $request) Determines whether it is save to store a page in the cache. Parameters \Symfony\Component\HttpFoundation\Response $response: The response which is about to be sent to the client. \Symfony\Component\HttpFoundation\Request $request: The request object. Return value string|null Either static::DENY or NULL. Calling code may attempt to store a page in the cache unless static::DENY is returned. Returns NULL if the policy policy is