FieldUninstallValidator::getFieldStoragesByModule

protected FieldUninstallValidator::getFieldStoragesByModule($module)

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.

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]);
}
doc_Drupal
2016-10-29 09:12:56
Comments
Leave a Comment

Please login to continue.