You are here

public function StorageManager::__construct in Paragraph View Mode 2.x

Same name and namespace in other branches
  1. 8 src/StorageManager.php \Drupal\paragraph_view_mode\StorageManager::__construct()

StorageManager constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager service.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/StorageManager.php, line 59

Class

StorageManager
Provides fields and forms storage operations required by the module.

Namespace

Drupal\paragraph_view_mode

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->formDisplay = $this->entityTypeManager
    ->getStorage('entity_form_display');
  $this->logger = $this
    ->getLogger(StorageManagerInterface::CONFIG_NAME);
}