You are here

public function TextItemFieldSerializer::__construct in Acquia Content Hub 8.2

TextItemFieldSerializer constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Throws

\Exception

File

src/EventSubscriber/SerializeContentField/TextItemFieldSerializer.php, line 43

Class

TextItemFieldSerializer
Subscribes to entity field serialization to extract the filter format uuid.

Namespace

Drupal\acquia_contenthub\EventSubscriber\SerializeContentField

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->storage = $entity_type_manager
    ->getStorage('filter_format');
}