ChainRequestPolicy::addPolicy

public ChainRequestPolicy::addPolicy(RequestPolicyInterface $policy) Add a policy to the list of policy rules. Parameters \Drupal\Core\PageCache\RequestPolicyInterface $policy: The request policy rule to add. Return value $this Overrides ChainRequestPolicyInterface::addPolicy File core/lib/Drupal/Core/PageCache/ChainRequestPolicy.php, line 55 Class ChainRequestPolicy Implements a compound request policy. Namespace Drupal\Core\PageCache Code public function addPolicy(RequestPolicyInte

EntityReferenceFieldItemList::defaultValuesFormSubmit

public EntityReferenceFieldItemList::defaultValuesFormSubmit(array $element, array &$form, FormStateInterface $form_state) Processes the submitted default value. Invoked from \Drupal\field_ui\Form\FieldConfigEditForm to allow administrators to configure instance-level default value. Parameters array $element: The default value form element. array $form: The form where the settings form is being included in. \Drupal\Core\Form\FormStateInterface $form_state: The form state of the (entire) co

ContactFormInterface::getMessage

public ContactFormInterface::getMessage() Returns the message to be displayed to user. Return value string A user message. File core/modules/contact/src/ContactFormInterface.php, line 18 Class ContactFormInterface Provides an interface defining a contact form entity. Namespace Drupal\contact Code public function getMessage();

State::$keyValueStore

The key value store to use. Type: \Drupal\Core\KeyValueStore\KeyValueStoreInterface File core/lib/Drupal/Core/State/State.php, line 17 Class State Provides the state system using a key value store. Namespace Drupal\Core\State Code protected $keyValueStore;

EntityViewBuilder::createInstance

public static EntityViewBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Depende

AggregatorController::adminOverview

public AggregatorController::adminOverview() Displays the aggregator administration page. Return value array A render array as expected by drupal_render(). File core/modules/aggregator/src/Controller/AggregatorController.php, line 109 Class AggregatorController Returns responses for aggregator module routes. Namespace Drupal\aggregator\Controller Code public function adminOverview() { $entity_manager = $this->entityManager(); $feeds = $entity_manager->getStorage('aggregator_

LOCALE_TRANSLATION_STATUS_TTL

The number of seconds that the translations status entry should be considered. File core/modules/locale/locale.module, line 107 Enables the translation of the user interface to languages other than English. Code const LOCALE_TRANSLATION_STATUS_TTL = 600;

BatchStorage::doCreate

protected BatchStorage::doCreate(array $batch) Saves a batch. Parameters array $batch: The array representing the batch to create. File core/lib/Drupal/Core/Batch/BatchStorage.php, line 151 Class BatchStorage Namespace Drupal\Core\Batch Code protected function doCreate(array $batch) { $this->connection->insert('batch') ->fields(array( 'bid' => $batch['id'], 'timestamp' => REQUEST_TIME, 'token' => $this->csrfToken->get($batch['id']),

book_form_node_form_alter

book_form_node_form_alter(&$form, FormStateInterface $form_state, $form_id) Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm. Adds the book form element to the node form. See also book_pick_book_nojs_submit() File core/modules/book/book.module, line 136 Allows users to create and organize related content in an outline. Code function book_form_node_form_alter(&$form, FormStateInterface $form_state, $form_id) { $node = $form_state->getFormObject()->getEntity(

book_node_links_alter

book_node_links_alter(array &$links, NodeInterface $node, array &$context) Implements hook_node_links_alter(). File core/modules/book/book.module, line 91 Allows users to create and organize related content in an outline. Code function book_node_links_alter(array &$links, NodeInterface $node, array &$context) { if ($context['view_mode'] != 'rss') { $account = \Drupal::currentUser(); if (isset($node->book['depth'])) { if ($context['view_mode'] == 'full' &