You are here

protected function StorageManager::getFieldStorage in Paragraph View Mode 8

Same name and namespace in other branches
  1. 2.x 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_mode

Code

protected function getFieldStorage() : EntityInterface {
  $field_storage = $this
    ->loadFieldStorage();
  if (!$field_storage) {
    $field_storage = $this
      ->createFieldStorage();
  }
  return $field_storage;
}