You are here

public function DigestFormatter::__construct in Message Digest 8

Construct the digest formatter service.

Parameters

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

\Drupal\Core\Render\RendererInterface $renderer: The rendering service.

File

src/DigestFormatter.php, line 36

Class

DigestFormatter
Message digest formatter service.

Namespace

Drupal\message_digest

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer) {
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
}