protected function FieldUninstallValidator::getFieldStoragesByModule in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 76 - Contains \Drupal\field\FieldUninstallValidator.
Class
- FieldUninstallValidator
- Prevents uninstallation of modules providing active field storage.
Namespace
Drupal\fieldCode
protected function getFieldStoragesByModule($module) {
return $this->fieldStorageConfigStorage
->loadByProperties([
'module' => $module,
'include_deleted' => TRUE,
]);
}