You are here

protected function FieldUninstallValidator::getFieldStoragesByModule in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field/src/FieldUninstallValidator.php \Drupal\field\FieldUninstallValidator::getFieldStoragesByModule()

Returns all field storages for a specified module.

Parameters

string $module: The module to filter field storages by.

Return value

\Drupal\field\FieldStorageConfigInterface[] An array of field storages for a specified module.

1 call to FieldUninstallValidator::getFieldStoragesByModule()
FieldUninstallValidator::validate in core/modules/field/src/FieldUninstallValidator.php
Determines the reasons a module can not be uninstalled.

File

core/modules/field/src/FieldUninstallValidator.php, line 84

Class

FieldUninstallValidator
Prevents uninstallation of modules providing active field storage.

Namespace

Drupal\field

Code

protected function getFieldStoragesByModule($module) {
  return $this->fieldStorageConfigStorage
    ->loadByProperties([
    'module' => $module,
    'include_deleted' => TRUE,
  ]);
}