You are here

public function PrintableEntityManager::__construct in Printer and PDF versions for Drupal 8+ 2.x

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

Constructs a new PrintableEntityManager object.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory service.

File

src/PrintableEntityManager.php, line 43

Class

PrintableEntityManager
Helper class for the printable module.

Namespace

Drupal\printable

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->configFactory = $config_factory;
}