ViewsData::getData

protected ViewsData::getData() Gets all data invoked by hook_views_data(). This is requested from the cache before being rebuilt. Return value array An array of all data. File core/modules/views/src/ViewsData.php, line 235 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected function getData() { $this->fullyLoaded = TRUE; if ($data = $this->cacheGet($this->baseCid)) { return $data->data; } else { $modules =

ViewsData::getRevisionViewsTableForEntityType

protected ViewsData::getRevisionViewsTableForEntityType(EntityTypeInterface $entity_type) Gets the table of an entity type to be used as revision table in views. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type. Return value string The revision base table. File core/modules/content_moderation/src/ViewsData.php, line 262 Class ViewsData Provides the content_moderation views integration. Namespace Drupal\content_moderation Code protected function getRevi

ViewsData::getViewsData

public ViewsData::getViewsData() Returns the views data. Return value array The views data. File core/modules/content_moderation/src/ViewsData.php, line 49 Class ViewsData Provides the content_moderation views integration. Namespace Drupal\content_moderation Code public function getViewsData() { $data = []; $data['content_revision_tracker']['table']['group'] = $this->t('Content moderation (tracker)'); $data['content_revision_tracker']['entity_type'] = [ 'title' => $t

ViewsData::prepareCid

protected ViewsData::prepareCid($cid) Prepares the cache ID by appending a language code. Parameters string $cid: The cache ID to prepare. Return value string The prepared cache ID. File core/modules/views/src/ViewsData.php, line 223 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code protected function prepareCid($cid) { return $cid . ':' . $this->langcode; }

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::__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

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

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

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;

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;