StorageInterface::write

public StorageInterface::write($name, array $data) Writes configuration data to the storage. Parameters string $name: The name of a configuration object to save. array $data: The configuration data to write. Return value bool TRUE on success, FALSE in case of an error. Throws \Drupal\Core\Config\StorageException If the back-end storage does not exist and cannot be created. File core/lib/Drupal/Core/Config/StorageInterface.php, line 67 Class StorageInterface Defines an interface for conf

template_preprocess_update_report

template_preprocess_update_report(&$variables) Prepares variables for project status report templates. Default template: update-report.html.twig. Parameters array $variables: An associative array containing: data: An array of data about each project's status. File core/modules/update/update.report.inc, line 21 Code required only when rendering the available updates report. Code function template_preprocess_update_report(&$variables) { $data = $variables['data']; $last = \Drup

BlockBase::__construct

public BlockBase::__construct(array $configuration, $plugin_id, $plugin_definition) Overrides \Drupal\Component\Plugin\PluginBase::__construct(). Overrides the construction of context aware plugins to allow for unvalidated constructor based injection of contexts. Parameters array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array

Datetime::valueCallback

public static Datetime::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to ass

NodeGrantDatabaseStorageInterface::access

public NodeGrantDatabaseStorageInterface::access(NodeInterface $node, $operation, AccountInterface $account) Determines access to nodes based on node grants. Parameters \Drupal\node\NodeInterface $node: The entity for which to check 'create' access. string $operation: The entity operation. Usually one of 'view', 'edit', 'create' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for which to check access. Return value \Drupal\Core\Access\AccessResultInterface The access res

DrupalKernel::terminate

public DrupalKernel::terminate(Request $request, Response $response) Terminates a request/response cycle. Should be called after sending the response and before shutting down the kernel. Parameters Request $request A Request instance: Response $response A Response instance: Overrides TerminableInterface::terminate File core/lib/Drupal/Core/DrupalKernel.php, line 622 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function termi

MenuLinkBase::getParent

public MenuLinkBase::getParent() Returns the plugin ID of the menu link's parent, or an empty string. Return value string The parent plugin ID. Overrides MenuLinkInterface::getParent File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 52 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getParent() { return $this->pluginDefinition['parent']; }

SearchQuery::preExecute

public SearchQuery::preExecute(SelectInterface $query = NULL) Generic preparation and validation for a SELECT query. Return value TRUE if the validation was successful, FALSE if not. Overrides SelectExtender::preExecute File core/modules/search/src/SearchQuery.php, line 463 Class SearchQuery Search query extender and helper functions. Namespace Drupal\search Code public function preExecute(SelectInterface $query = NULL) { if (!$this->executedPrepare) { $this->prepareAndNor

ContextCacheKeys::$keys

The generated cache keys. Type: string[] File core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php, line 17 Class ContextCacheKeys A value object to store generated cache keys with its cacheability metadata. Namespace Drupal\Core\Cache\Context Code protected $keys;

EntityDisplayRepository::getAllViewModes

public EntityDisplayRepository::getAllViewModes() Gets the entity view mode info for all entity types. Return value array The view mode info for all entity types. Overrides EntityDisplayRepositoryInterface::getAllViewModes File core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 70 Class EntityDisplayRepository Provides a repository for entity display objects (view modes and form modes). Namespace Drupal\Core\Entity Code public function getAllViewModes() { return $this->