protected function StorageManager::getFieldStorage in Paragraph View Mode 2.x
Same name and namespace in other branches
- 8 src/StorageManager.php \Drupal\paragraph_view_mode\StorageManager::getFieldStorage()
Get field config storage.
Return value
\Drupal\Core\Entity\EntityInterface Field storage configuration entity.
Throws
\Drupal\Core\Entity\EntityStorageException
1 call to StorageManager::getFieldStorage()
- StorageManager::createField in src/
StorageManager.php - Create new field config.
File
- src/
StorageManager.php, line 228
Class
- StorageManager
- Provides fields and forms storage operations required by the module.
Namespace
Drupal\paragraph_view_modeCode
protected function getFieldStorage() : EntityInterface {
$field_storage = $this
->loadFieldStorage();
if (!$field_storage) {
$field_storage = $this
->createFieldStorage();
}
return $field_storage;
}