UseCacheBackendTrait::cacheGet

protected UseCacheBackendTrait::cacheGet($cid) Fetches from the cache backend, respecting the use caches flag. Parameters string $cid: The cache ID of the data to retrieve. Return value object|false The cache item or FALSE on failure. See also \Drupal\Core\Cache\CacheBackendInterface::get() File core/lib/Drupal/Core/Cache/UseCacheBackendTrait.php, line 35 Class UseCacheBackendTrait Provides methods to use a cache backend while respecting a 'use caches' flag. Namespace Drupal\Core\Cac

FileTransfer::removeDirectoryJailed

abstract protected FileTransfer::removeDirectoryJailed($directory) Removes a directory. Parameters string $directory: The directory to be removed. File core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 300 Class FileTransfer Defines the base FileTransfer class. Namespace Drupal\Core\FileTransfer Code abstract protected function removeDirectoryJailed($directory);

ContentEntityNullStorage::doLoadRevisionFieldItems

protected ContentEntityNullStorage::doLoadRevisionFieldItems($revision_id) Actually loads revision field item values from the storage. Parameters int|string $revision_id: The revision identifier. Return value \Drupal\Core\Entity\EntityInterface|null The specified entity revision or NULL if not found. Overrides ContentEntityStorageBase::doLoadRevisionFieldItems File core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 82 Class ContentEntityNullStorage Defines a null entity stora

MenuDeleteForm::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/modules/menu_ui/src/Form/MenuDeleteForm.php, line 28 Class MenuDeleteForm Defines a confirmation form for deletion of a custom menu. Namespace Drupal\menu_ui\Form Code protected $connection;

EntityOperations::entityInsert

public EntityOperations::entityInsert(EntityInterface $entity) Hook bridge. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity that was just saved. See also hook_entity_insert() File core/modules/content_moderation/src/EntityOperations.php, line 114 Class EntityOperations Defines a class for reacting to entity events. Namespace Drupal\content_moderation Code public function entityInsert(EntityInterface $entity) { if ($this->moderationInfo->isModeratedEntity($e

NodeForm::actions

protected NodeForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/node/src/NodeForm.php, line 232 Class NodeForm Form handler for the node edit forms. Namespace Drupal\node Code protected function actions(array $form, FormStateInterface $form_state) { $element = parent::acti

ApcuBackend::setMultiple

public ApcuBackend::setMultiple(array $items = array()) 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, se

hook_ranking

hook_ranking() Provide additional methods of scoring for core search results for nodes. A node's search score is used to rank it among other nodes matched by the search, with the highest-ranked nodes appearing first in the search listing. For example, a module allowing users to vote on content could expose an option to allow search results' rankings to be influenced by the average voting score of a node. All scoring mechanisms are provided as options to site administrators, and may be tweaked b

ConfigSnapshotSubscriber

Create a snapshot when config is imported. Hierarchy class \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber implements EventSubscriberInterface File core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php, line 14 Namespace Drupal\Core\EventSubscriber Members Name Modifiers Type Description ConfigSnapshotSubscriber::$configManager protected property The configuration manager. ConfigSnapshotSubscriber::$snapshotStorage protected property The snapsho

AssetResolver::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface $language_manager File core/lib/Drupal/Core/Asset/AssetResolver.php, line 50 Class AssetResolver The default asset resolver. Namespace Drupal\Core\Asset Code protected $languageManager;