public static function ConvertBundles::getBaseTableNames in Convert Bundles 8
1 call to ConvertBundles::getBaseTableNames()
File
- src/
ConvertBundles.php, line 108
Class
- ConvertBundles
- ConvertBundles.
Namespace
Drupal\convert_bundlesCode
public static function getBaseTableNames($entity_type) {
$storage = \Drupal::service('entity_type.manager')
->getStorage($entity_type);
// Get the names of the base tables.
$base_table_names = [];
$base_table_names[] = $storage
->getBaseTable();
if (!empty($storage
->getDataTable())) {
$base_table_names[] = $storage
->getDataTable();
}
return $base_table_names;
}