CookiesCacheContext::getCacheableMetadata

public CookiesCacheContext::getCacheableMetadata($cookie = 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 away to allo

SqlContentEntityStorageSchema::getFieldUniqueKeys

protected SqlContentEntityStorageSchema::getFieldUniqueKeys($field_name, array $field_schema, array $column_mapping) Gets a unique key schema array for a given field. Parameters string $field_name: The name of the field. array $field_schema: The schema of the field. string[] $column_mapping: A mapping of field column names to database column names. Return value array The schema definition for the unique keys. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 657

ApcuBackendFactory::get

public ApcuBackendFactory::get($bin) Gets ApcuBackend for the specified cache bin. Parameters $bin: The cache bin for which the object is created. Return value \Drupal\Core\Cache\ApcuBackend The cache backend object for the specified cache bin. Overrides CacheFactoryInterface::get File core/lib/Drupal/Core/Cache/ApcuBackendFactory.php, line 60 Class ApcuBackendFactory Namespace Drupal\Core\Cache Code public function get($bin) { return new $this->backendClass($bin, $this->sit

FileStorage

Defines the file storage. Hierarchy class \Drupal\Core\Config\FileStorage implements StorageInterface File core/lib/Drupal/Core/Config/FileStorage.php, line 12 Namespace Drupal\Core\Config Members Name Modifiers Type Description FileStorage::$collection protected property The storage collection. FileStorage::$directory protected property The filesystem path for configuration objects. FileStorage::$fileCache protected property The file cache object. File

TwigExtension::getTokenParsers

public TwigExtension::getTokenParsers() File core/lib/Drupal/Core/Template/TwigExtension.php, line 190 Class TwigExtension A class providing Drupal Twig extensions. Namespace Drupal\Core\Template Code public function getTokenParsers() { return array( new TwigTransTokenParser(), ); }

views_get_view_result

views_get_view_result($name, $display_id = NULL) Get the result of a view. Parameters string $name: The name of the view to retrieve the data from. string $display_id: The display id. On the edit page for the view in question, you'll find a list of displays at the left side of the control area. "Master" will be at the top of that list. Hover your cursor over the name of the display you want to use. A URL will appear in the status bar of your browser. This is usually at the bottom of the window

StorageComparer::reset

public StorageComparer::reset() Recalculates the differences. Return value \Drupal\Core\Config\StorageComparerInterface An object which implements the StorageComparerInterface. Overrides StorageComparerInterface::reset File core/lib/Drupal/Core/Config/StorageComparer.php, line 366 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code public function reset() { $this->changelist = array(StorageInterface::DEFAULT_COLLECTION => $this->getEmp

WidgetBase::addMoreSubmit

public static WidgetBase::addMoreSubmit(array $form, FormStateInterface $form_state) Submission handler for the "Add another item" button. File core/lib/Drupal/Core/Field/WidgetBase.php, line 269 Class WidgetBase Base class for 'Field widget' plugin implementations. Namespace Drupal\Core\Field Code public static function addMoreSubmit(array $form, FormStateInterface $form_state) { $button = $form_state->getTriggeringElement(); // Go one level up in the form, to the widgets cont

LanguageConfigOverride::getLangcode

public LanguageConfigOverride::getLangcode() Returns the language code of this language override. Return value string The language code. File core/modules/language/src/Config/LanguageConfigOverride.php, line 89 Class LanguageConfigOverride Defines language configuration overrides. Namespace Drupal\language\Config Code public function getLangcode() { return $this->getLangcodeFromCollectionName($this->getStorage()->getCollectionName()); }

DynamicPageCacheSubscriber::renderArrayToResponse

protected DynamicPageCacheSubscriber::renderArrayToResponse(array $render_array) Gets the embedded Response object in a render array. Parameters array $render_array: A render array with a #response property. Return value \Drupal\Core\Cache\CacheableResponseInterface The cacheable response object. See also responseToRenderArray() File core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php, line 300 Class DynamicPageCacheSubscriber Returns cached responses as e