DefaultRequestPolicy::__construct

public DefaultRequestPolicy::__construct(SessionConfigurationInterface $session_configuration) Constructs the default page cache request policy. Parameters \Drupal\Core\Session\SessionConfigurationInterface $session_configuration: The session configuration. File core/lib/Drupal/Core/PageCache/DefaultRequestPolicy.php, line 24 Class DefaultRequestPolicy The default page cache request policy. Namespace Drupal\Core\PageCache Code public function __construct(SessionConfigurationInterface

ArrayElement::createElement

protected ArrayElement::createElement($definition, $value, $key) Creates a contained typed configuration object. Parameters \Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition object. mixed $value: (optional) The data value. If set, it has to match one of the supported data type format as documented for the data type classes. string $key: The key of the contained element. Return value \Drupal\Core\TypedData\TypedDataInterface File core/lib/Drupal/Core/Config/Schema

ApcuBackend

Stores cache items in the Alternative PHP Cache User Cache (APCu). Hierarchy class \Drupal\Core\Cache\ApcuBackend implements CacheBackendInterface File core/lib/Drupal/Core/Cache/ApcuBackend.php, line 8 Namespace Drupal\Core\Cache Members Name Modifiers Type Description ApcuBackend::$bin protected property The name of the cache bin to use. ApcuBackend::$binPrefix protected property Prefix for all keys in this cache bin. ApcuBackend::$checksumProvider protecte

locale_translation_update_file_history

locale_translation_update_file_history($file) Updates the {locale_file} table. Parameters object $file: Object representing the file just imported. Return value int FALSE on failure. Otherwise SAVED_NEW or SAVED_UPDATED. File core/modules/locale/locale.module, line 839 Enables the translation of the user interface to languages other than English. Code function locale_translation_update_file_history($file) { $status = db_merge('locale_file') ->key(array( 'project' => $file-

ThemeHandlerInterface::themeExists

public ThemeHandlerInterface::themeExists($theme) Determines whether a given theme is installed. Parameters string $theme: The name of the theme (without the .theme extension). Return value bool TRUE if the theme is installed. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 190 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function themeExists($theme);

UserStorage::deleteRoleReferences

public UserStorage::deleteRoleReferences(array $rids) Delete role references. Parameters array $rids: The list of role IDs being deleted. The storage should remove permission and user references to this role. Overrides UserStorageInterface::deleteRoleReferences File core/modules/user/src/UserStorage.php, line 67 Class UserStorage Controller class for users. Namespace Drupal\user Code public function deleteRoleReferences(array $rids) { // Remove the role from all users. $this->d

Link::__construct

public Link::__construct($text, Url $url) Constructs a new Link object. Parameters string $text: The text of the link. \Drupal\Core\Url $url: The url object. File core/lib/Drupal/Core/Link.php, line 40 Class Link Defines an object that holds information about a link. Namespace Drupal\Core Code public function __construct($text, Url $url) { $this->text = $text; $this->url = $url; }

content_translation_install

content_translation_install() Implements hook_install(). File core/modules/content_translation/content_translation.install, line 13 Installation functions for Content Translation module. Code function content_translation_install() { // Assign a fairly low weight to ensure our implementation of // hook_module_implements_alter() is run among the last ones. module_set_weight('content_translation', 10); // Translation works when at least two languages are added. if (count(\Drupal::lang

MenuTreeStorageInterface::loadMultiple

public MenuTreeStorageInterface::loadMultiple(array $ids) Loads multiple plugin definitions from the storage. Parameters array $ids: An array of plugin IDs. Return value array An array of plugin definition arrays keyed by plugin ID, which are the actual definitions after the loadMultiple() including all those plugins from $ids. File core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php, line 60 Class MenuTreeStorageInterface Defines an interface for storing a menu tree containing menu l

ViewExecutable::initStyle

public ViewExecutable::initStyle() Finds and initializes the style plugin. Note that arguments may have changed which style plugin we use, so check the view object first, then ask the display handler. Return value bool TRUE if the style plugin was or could be initialized, FALSE otherwise. File core/modules/views/src/ViewExecutable.php, line 867 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function initStyle() { if (isset($this->style_plugi