protected function 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.

1 call to ViewsData::getData()
ViewsData::get in drupal/core/modules/views/lib/Drupal/views/ViewsData.php
Gets data for a particular table, or all tables.

File

drupal/core/modules/views/lib/Drupal/views/ViewsData.php, line 185
Contains \Drupal\views\ViewsData.

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 {
    $data = $this->moduleHandler
      ->invokeAll('views_data');
    $this->moduleHandler
      ->alter('views_data', $data);
    $this
      ->processEntityTypes($data);

    // Keep a record with all data.
    $this->cacheBackend
      ->set($this
      ->prepareCid($this->baseCid), $data);
    return $data;
  }
}