template_preprocess_views_view_grouping

template_preprocess_views_view_grouping(&$variables) Prepares variables for views single grouping templates. Default template: views-view-grouping.html.twig. Parameters array $variables: An associative array containing: view: The view object. rows: The rows returned from the view. grouping_level: Integer indicating the hierarchical level of the grouping. content: The content to be grouped. title: The group heading. File core/modules/views/views.theme.inc, line 207 Preprocessors and

color_requirements

color_requirements($phase) Implements hook_requirements(). File core/modules/color/color.install, line 11 Install, update and uninstall functions for the color module. Code function color_requirements($phase) { $requirements = array(); if ($phase == 'runtime') { // Check for the PHP GD library. if (function_exists('imagegd2')) { $info = gd_info(); $requirements['color_gd'] = array( 'value' => $info['GD Version'], ); // Check for PNG support.

EntityDisplayFormBase::getExtraFieldVisibilityOptions

protected EntityDisplayFormBase::getExtraFieldVisibilityOptions() Returns an array of visibility options for extra fields. Return value array An array of visibility options. File core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 826 Class EntityDisplayFormBase Base class for EntityDisplay edit forms. Namespace Drupal\field_ui\Form Code protected function getExtraFieldVisibilityOptions() { return array( 'visible' => $this->t('Visible'), 'hidden' => '- '

template_preprocess_views_view_opml

template_preprocess_views_view_opml(&$variables) Prepares variables for OPML feed templates. Default template: views-view-opml.html.twig. Parameters array $variables: An associative array containing: view: A ViewExecutable object. rows: The raw row data. File core/modules/views/views.theme.inc, line 935 Preprocessors and helper functions to make theming easier. Code function template_preprocess_views_view_opml(&$variables) { $view = $variables['view']; $items = $variables['ro

QueryInterface

Interface for entity queries. Never instantiate classes implementing this interface directly. Always use the QueryFactory class. Hierarchy interface \Drupal\Core\Database\Query\AlterableInterfaceinterface \Drupal\Core\Entity\Query\QueryInterface Related topics Database abstraction layer Allow the use of different database servers using the same code base. File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 15 Namespace Drupal\Core\Entity\Query Members Name Modifiers

RefinableCacheableDependencyTrait::$cacheTags

Cache tags. Type: string[] File core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php, line 22 Class RefinableCacheableDependencyTrait Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface. Namespace Drupal\Core\Cache Code protected $cacheTags = [];

template_preprocess_views_view_row_opml

template_preprocess_views_view_row_opml(&$variables) Prepares variables for views OPML item templates. Default template: views-view-row-opml.html.twig. Parameters array $variables: An associative array containing: row: The raw results rows. File core/modules/views/views.theme.inc, line 970 Preprocessors and helper functions to make theming easier. Code function template_preprocess_views_view_row_opml(&$variables) { $item = $variables['row']; $variables['attributes'] = new Att

StringStorageInterface::getStrings

public StringStorageInterface::getStrings(array $conditions = array(), array $options = array()) Loads multiple source string objects. Parameters array $conditions: (optional) Array with conditions that will be used to filter the strings returned and may include any of the following elements: Any simple field value indexed by field name. 'translated', TRUE to get only translated strings or FALSE to get only untranslated strings. If not set it returns both translated and untranslated strings th

CommandWithAttachedAssetsTrait

Trait for Ajax commands that render content and attach assets. Hierarchy trait \Drupal\Core\Ajax\CommandWithAttachedAssetsTrait Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/CommandWithAttachedAssetsTrait.php, line 12 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description CommandWithAttachedAssetsTrait::$attachedAssets protected property The attached assets for this Ajax command. CommandWithAttachedAssetsTrait::get

menu_ui_node_predelete

menu_ui_node_predelete(EntityInterface $node) Implements hook_ENTITY_TYPE_predelete() for node entities. File core/modules/menu_ui/menu_ui.module, line 169 Allows administrators to customize the site's navigation menus. Code function menu_ui_node_predelete(EntityInterface $node) { // Delete all MenuLinkContent links that point to this node. /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */ $menu_link_manager = \Drupal::service('plugin.manager.menu.link'); $resu