You are here

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

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

Constructs a new PrintableEntityManager object.

Parameters

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

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

File

src/PrintableEntityManager.php, line 44

Class

PrintableEntityManager
Helper class for the printable module.

Namespace

Drupal\printable

Code

public function __construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory) {
  $this->entityManager = $entity_manager;
  $this->configFactory = $config_factory;
}