function ViewsData::getAll
Same name and namespace in other branches
- 11.x core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::getAll()
- 10 core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::getAll()
- 9 core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::getAll()
- 8.9.x core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::getAll()
Gets all table data.
Return value
array An array of table data.
1 call to ViewsData::getAll()
- ViewsData::fetchBaseTables in core/
modules/ views/ src/ ViewsData.php - Fetches a list of all base tables available.
File
-
core/
modules/ views/ src/ ViewsData.php, line 110
Class
- ViewsData
- Class to manage and lazy load cached views data.
Namespace
Drupal\viewsCode
public function getAll() {
if ($this->loading && \Fiber::getCurrent() !== NULL) {
// The loading flag is set in ::getData(). If 'loading' is TRUE when
// entering here, that indicates a separate fiber started loading views
// data but has not completed. Suspend this fiber once to give the other
// fiber a chance to complete loading.
\Fiber::suspend();
}
if (!$this->fullyLoaded) {
$this->allStorage = $this->getData();
}
// Set storage from allStorage outside of the fullyLoaded check to prevent
// cache calls on requests that have requested all data to get a single
// tables data. Make sure $this->storage is populated in this case.
$this->storage = $this->allStorage;
return $this->allStorage;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.