function data_get_all_tables in Data 8
Same name and namespace in other branches
- 6 data.module \data_get_all_tables()
- 7 data.module \data_get_all_tables()
Load all data tables.
Return value
array Array of TableConfigInterface objects.
6 calls to data_get_all_tables()
- DataDeriver::getDerivativeDefinitions in src/
Plugin/ Derivative/ DataDeriver.php - Gets the definition of all derivatives of a base plugin.
- DataTestCaseAPI::testAPIFunctions in tests/
data.test - Test API functions of DataTable and TableFactory.
- data_date_views_fields in ./
data.module - Implements hook_date_views_fields().
- data_schema_alter in ./
data.install - Implements hook_schema_alter().
- data_search_get_tables in data_search/
data_search.module - Gather all tables which might be eligible for searching.
File
- ./
data.module, line 15 - Hooks and API functions for data module.
Code
function data_get_all_tables($reset = FALSE) {
$storage = \Drupal::entityTypeManager()
->getStorage('data_table_config');
if ($reset) {
$storage
->resetCache();
}
return $storage
->loadMultiple();
}