ModerationInformationInterface::isLiveRevision

public ModerationInformationInterface::isLiveRevision(ContentEntityInterface $entity) Determines if an entity is "live". A "live" entity revision is one whose latest revision is also the default, and whose moderation state, if any, is a published state. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity to check. Return value bool TRUE if the specified entity is a live revision, FALSE otherwise. File core/modules/content_moderation/src/ModerationInformationInterface.php

EntityStorageInterface::delete

public EntityStorageInterface::delete(array $entities) Deletes permanently saved entities. Parameters array $entities: An array of entity objects to delete. Throws \Drupal\Core\Entity\EntityStorageException In case of failures, an exception is thrown. File core/lib/Drupal/Core/Entity/EntityStorageInterface.php, line 128 Class EntityStorageInterface Defines the interface for entity storage classes. Namespace Drupal\Core\Entity Code public function delete(array $entities);

BaseFieldDefinition::setSettings

public BaseFieldDefinition::setSettings(array $settings) Note that the method does not unset existing settings not specified in the incoming $settings array. For example: // Given these are the default settings. $field_definition->getSettings() === [ 'fruit' => 'apple', 'season' => 'summer', ]; // Change only the 'fruit' setting. $field_definition->setSettings(['fruit' => 'banana']); // The 'season' setting persists unchanged. $field_definition->getSetti

Transaction

PostgreSQL implementation of \Drupal\Core\Database\Transaction. Hierarchy class \Drupal\Core\Database\Transactionclass \Drupal\Core\Database\Driver\pgsql\Transaction File core/lib/Drupal/Core/Database/Driver/pgsql/Transaction.php, line 10 Namespace Drupal\Core\Database\Driver\pgsql Members Name Modifiers Type Description Transaction::$connection protected property The connection object for this transaction. Transaction::$name protected property The name of the t

Apcu4Backend

Stores cache items in the Alternative PHP Cache User Cache (APCu). This class is used with APCu versions >= 4.0.0 and < 5.0.0. Hierarchy class \Drupal\Core\Cache\ApcuBackend implements CacheBackendInterfaceclass \Drupal\Core\Cache\Apcu4Backend File core/lib/Drupal/Core/Cache/Apcu4Backend.php, line 10 Namespace Drupal\Core\Cache Members Name Modifiers Type Description Apcu4Backend::getIterator protected function Overrides ApcuBackend::getIterator ApcuBackend::$bi

ConfigSnapshotSubscriber::__construct

public ConfigSnapshotSubscriber::__construct(ConfigManagerInterface $config_manager, StorageInterface $source_storage, StorageInterface $snapshot_storage) Constructs the ConfigSnapshotSubscriber object. Parameters StorageInterface $source_storage: The source storage used to discover configuration changes. StorageInterface $snapshot_storage: The snapshot storage used to write configuration changes. File core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php, line 45 Class ConfigS

DatabaseCacheTagsChecksum::calculateChecksum

protected DatabaseCacheTagsChecksum::calculateChecksum(array $tags) Calculates the current checksum for a given set of tags. Parameters array $tags: The array of tags to calculate the checksum for. Return value int The calculated checksum. File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 105 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that uses the database. Namespace Drupal\Core\Cache Code protected function calculateChecksum(a

ConfigEntityStorage::$configStorage

The config storage service. Type: \Drupal\Core\Config\StorageInterface File core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 69 Class ConfigEntityStorage Defines the storage class for configuration entities. Namespace Drupal\Core\Config\Entity Code protected $configStorage;

ForumController::forumPage

public ForumController::forumPage(TermInterface $taxonomy_term) Returns forum page for a given forum. Parameters \Drupal\taxonomy\TermInterface $taxonomy_term: The forum to render the page for. Return value array A render array. File core/modules/forum/src/Controller/ForumController.php, line 154 Class ForumController Controller routines for forum routes. Namespace Drupal\forum\Controller Code public function forumPage(TermInterface $taxonomy_term) { // Get forum details. $taxono

block.module

Controls the visual building blocks a page is constructed with. File core/modules/block/block.module Functions Name Description block_configurable_language_delete Implements hook_ENTITY_TYPE_delete() for 'configurable_language'. block_help Implements hook_help(). block_menu_delete Implements hook_ENTITY_TYPE_delete() for menu entities. block_page_top Implements hook_page_top(). block_rebuild Implements hook_rebuild(). block_theme Implements hook_theme(). block_th