ContextCacheKeys::__construct

public ContextCacheKeys::__construct(array $keys) Constructs a ContextCacheKeys object. Parameters string[] $keys: The cache context keys. File core/lib/Drupal/Core/Cache/Context/ContextCacheKeys.php, line 25 Class ContextCacheKeys A value object to store generated cache keys with its cacheability metadata. Namespace Drupal\Core\Cache\Context Code public function __construct(array $keys) { $this->keys = $keys; }

Token::findWithPrefix

public Token::findWithPrefix(array $tokens, $prefix, $delimiter = ':') Returns a list of tokens that begin with a specific prefix. Used to extract a group of 'chained' tokens (such as [node:author:name]) from the full list of tokens found in text. For example: $data = array( 'author:name' => '[node:author:name]', 'title' => '[node:title]', 'created' => '[node:created]', ); $results = Token::findWithPrefix($data, 'author'); $results == array('name' => '[

ModerationStateTransitionForm::create

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

EntityViewBuilder::getSingleFieldDisplay

protected EntityViewBuilder::getSingleFieldDisplay($entity, $field_name, $display_options) Gets an EntityViewDisplay for rendering an individual field. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity. string $field_name: The field name. string|array $display_options: The display options passed to the viewField() method. Return value \Drupal\Core\Entity\Display\EntityViewDisplayInterface File core/lib/Drupal/Core/Entity/EntityViewBuilder.php, line 430 Class EntityViewBui

FormStateInterface::setAlwaysProcess

public FormStateInterface::setAlwaysProcess($always_process = TRUE) Sets this form to always be processed. This should only be used on RESTful GET forms that do NOT write data, as this could lead to security issues. It is useful so that searches do not need to have a form_id in their query arguments to trigger the search. Parameters bool $always_process: TRUE if the form should always be processed, FALSE otherwise. Return value $this File core/lib/Drupal/Core/Form/FormStateInterface.php, line

content_translation_preprocess_language_content_settings_table

content_translation_preprocess_language_content_settings_table(&$variables) Implements hook_preprocess_HOOK() for language-content-settings-table.html.twig. File core/modules/content_translation/content_translation.module, line 552 Allows entities to be translated into different languages. Code function content_translation_preprocess_language_content_settings_table(&$variables) { module_load_include('inc', 'content_translation', 'content_translation.admin'); _content_translation_p

AggregatorController::buildPageList

protected AggregatorController::buildPageList(array $items, $feed_source = '') Builds a listing of aggregator feed items. Parameters \Drupal\aggregator\ItemInterface[] $items: The items to be listed. array|string $feed_source: The feed source URL. Return value array The rendered list of items for the feed. File core/modules/aggregator/src/Controller/AggregatorController.php, line 68 Class AggregatorController Returns responses for aggregator module routes. Namespace Drupal\aggregator\

LocalReadOnlyStream::mkdir

public LocalReadOnlyStream::mkdir($uri, $mode, $options) Support for mkdir(). Directory will never be created as this is a read-only stream wrapper. Parameters string $uri: A string containing the URI to the directory to create. int $mode: Permission flags - see mkdir(). int $options: A bit mask of STREAM_REPORT_ERRORS and STREAM_MKDIR_RECURSIVE. Return value bool FALSE as directory will never be created. Overrides LocalStream::mkdir See also http://php.net/manual/streamwrapper.mkdir.php Fil

_ckeditor_theme_css

_ckeditor_theme_css($theme = NULL) Retrieves the default theme's CKEditor stylesheets. Themes may specify iframe-specific CSS files for use with CKEditor by including a "ckeditor_stylesheets" key in their .info.yml file. ckeditor_stylesheets: - css/ckeditor-iframe.css File core/modules/ckeditor/ckeditor.module, line 81 Provides integration with the CKEditor WYSIWYG editor. Code function _ckeditor_theme_css($theme = NULL) { $css = array(); if (!isset($theme)) { $theme = \Drupal::con

ConfigTranslationAddForm::buildForm

public ConfigTranslationAddForm::buildForm(array $form, FormStateInterface $form_state, RouteMatchInterface $route_match = NULL, $plugin_id = NULL, $langcode = NULL) Implements \Drupal\Core\Form\FormInterface::buildForm(). Builds configuration form with metadata and values from the source language. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\Core\Routing\RouteMatchInt