ViewsDataHelper::__construct

public ViewsDataHelper::__construct(ViewsData $views_data) Constructs a ViewsData object. Parameters \Drupal\views\ViewsData $views_data: The views data object, containing the cached table information. File core/modules/views/src/ViewsDataHelper.php, line 33 Class ViewsDataHelper Defines a helper class for stuff related to views data. Namespace Drupal\views Code public function __construct(ViewsData $views_data) { $this->data = $views_data; }

ViewsDataHelper::fetchedFieldSort

protected static ViewsDataHelper::fetchedFieldSort($a, $b) Sort function for fetched fields. Parameters array $a: First item for comparison. The compared items should be associative arrays that include a 'group' and a 'title' key. array $b: Second item for comparison. Return value int Returns -1 if $a comes before $b, 1 other way round and 0 if it cannot be decided. File core/modules/views/src/ViewsDataHelper.php, line 176 Class ViewsDataHelper Defines a helper class for stuff related to

ViewsDataHelper::fetchFields

public ViewsDataHelper::fetchFields($base, $type, $grouping = FALSE, $sub_type = NULL) Fetches a list of all fields available for a given base type. Parameters (array|string) $base: A list or a single base_table, for example node. string $type: The handler type, for example field or filter. bool $grouping: Should the result grouping by its 'group' label. string $sub_type: An optional sub type. E.g. Allows making an area plugin available for header only, instead of header, footer, and empty reg

ViewsDataHelper::$fields

A prepared list of all fields, keyed by base_table and handler type. File core/modules/views/src/ViewsDataHelper.php, line 25 Class ViewsDataHelper Defines a helper class for stuff related to views data. Namespace Drupal\views Code protected $fields;

ViewsDataHelper

Defines a helper class for stuff related to views data. Hierarchy class \Drupal\views\ViewsDataHelper File core/modules/views/src/ViewsDataHelper.php, line 11 Namespace Drupal\views Members Name Modifiers Type Description ViewsDataHelper::$data protected property The views data object, containing the cached information. ViewsDataHelper::$fields protected property A prepared list of all fields, keyed by base_table and handler type. ViewsDataHelper::fetchedFieldS

ViewsData::__construct

public ViewsData::__construct(CacheBackendInterface $cache_backend, ConfigFactoryInterface $config, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager) Constructs this ViewsData object. Parameters \Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend to use. \Drupal\Core\Config\ConfigFactoryInterface $config: The configuration factory object to use. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler class to us

ViewsDataHelper::$data

The views data object, containing the cached information. Type: \Drupal\views\ViewsData File core/modules/views/src/ViewsDataHelper.php, line 18 Class ViewsDataHelper Defines a helper class for stuff related to views data. Namespace Drupal\views Code protected $data;

ViewsData::__construct

public ViewsData::__construct(EntityTypeManagerInterface $entity_type_manager, ModerationInformationInterface $moderation_information) Creates a new ViewsData instance. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager. \Drupal\content_moderation\ModerationInformationInterface $moderation_information: The moderation information. File core/modules/content_moderation/src/ViewsData.php, line 38 Class ViewsData Provides the content_moderat

ViewsData::processEntityTypes

protected ViewsData::processEntityTypes(array &$data) Links tables with 'entity type' to respective generic entity-type tables. Parameters array $data: The array of data to alter entity data for, passed by reference. File core/modules/views/src/ViewsData.php, line 271 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected function processEntityTypes(array &$data) { foreach ($data as $table_name => $table_info) { // Add i

ViewsData::getAll

public ViewsData::getAll() Gets all table data. Return value array $data An array of table data. See also https://www.drupal.org/node/2723553 File core/modules/views/src/ViewsData.php, line 119 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code public function getAll() { if (!$this->fullyLoaded) { $this->allStorage = $this->getData(); } // Set storage from allStorage outside of the fullyLoaded check to prevent // cache c