ContentEntityDeleteForm::getCancelUrl

public ContentEntityDeleteForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php, line 81 Class ContentEntityDeleteForm Provides a generic base class for a content entity deletion form. Namespace Drupal\Core\Entity Code public function getCancelUrl() { /** @var \Drupal\Core\Entity\ContentEntityInterface $entity

EntityTypeInterface::getRevisionTable

public EntityTypeInterface::getRevisionTable() Gets the name of the entity's revision table. @todo Used by SqlContentEntityStorage only. Return value string|null The name of the entity type's revision table, or NULL if none exists. File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 602 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getRevisionTable();

TwigPhpStorageCache::write

public TwigPhpStorageCache::write($key, $content) Writes the compiled template to cache. Parameters string $key The cache key: string $content The template representation as a PHP class: Overrides Twig_CacheInterface::write File core/lib/Drupal/Core/Template/TwigPhpStorageCache.php, line 96 Class TwigPhpStorageCache Provides an alternate cache storage for Twig using PhpStorage. Namespace Drupal\Core\Template Code public function write($key, $content) { $this->storage()->save($

RefinableCacheableDependencyTrait::addCacheContexts

public RefinableCacheableDependencyTrait::addCacheContexts(array $cache_contexts) Adds cache contexts. Parameters string[] $cache_contexts: The cache contexts to be added. Return value $this Overrides RefinableCacheableDependencyInterface::addCacheContexts File core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php, line 71 Class RefinableCacheableDependencyTrait Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface. Namespace Drupal\Core\Cache Code public func

CacheCollector::has

public CacheCollector::has($key) Returns whether data exists for this key. Parameters string $key: Key that identifies the data. Overrides CacheCollectorInterface::has File core/lib/Drupal/Core/Cache/CacheCollector.php, line 133 Class CacheCollector Default implementation for CacheCollectorInterface. Namespace Drupal\Core\Cache Code public function has($key) { // Make sure the value is loaded. $this->get($key); return isset($this->storage[$key]) || array_key_exists($key, $

StorageComparer::$sourceStorage

The source storage used to discover configuration changes. Type: \Drupal\Core\Config\StorageInterface File core/lib/Drupal/Core/Config/StorageComparer.php, line 20 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code protected $sourceStorage;

AccountSwitcher::$accountStack

A stack of previous overridden accounts. Type: \Drupal\Core\Session\AccountInterface[] File core/lib/Drupal/Core/Session/AccountSwitcher.php, line 19 Class AccountSwitcher An implementation of AccountSwitcherInterface. Namespace Drupal\Core\Session Code protected $accountStack = array();

AccessResultInterface

Interface for access result value objects. IMPORTANT NOTE: You have to call isAllowed() when you want to know whether someone has access. Just using if ($access_result) { // The user has access! } else { // The user doesn't have access! } would never enter the else-statement and hence introduce a critical security issue. Hierarchy interface \Drupal\Core\Access\AccessResultInterface File core/lib/Drupal/Core/Access/AccessResultInterface.php, line 21 Namespace Drupal\Core\Access Me

ClientFactory

Helper class to construct a HTTP client with Drupal specific config. Hierarchy class \Drupal\Core\Http\ClientFactory File core/lib/Drupal/Core/Http/ClientFactory.php, line 13 Namespace Drupal\Core\Http Members Name Modifiers Type Description ClientFactory::$stack protected property The handler stack. ClientFactory::fromOptions public function Constructs a new client object from some configuration. ClientFactory::__construct public function Constructs a ne

SearchPageInterface::isIndexable

public SearchPageInterface::isIndexable() Determines if this search page entity is indexable. Return value bool TRUE if this search page entity is indexable, FALSE otherwise. File core/modules/search/src/SearchPageInterface.php, line 42 Class SearchPageInterface Provides an interface defining a search page entity. Namespace Drupal\search Code public function isIndexable();