You are here

public function TransactionController::__construct in Transaction 8

TransactionController constructor.

Parameters

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

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

src/Controller/TransactionController.php, line 28

Class

TransactionController
Provides title callbacks for transaction entities.

Namespace

Drupal\transaction\Controller

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
  $this->entityTypeManager = $entity_type_manager;
  $this->stringTranslation = $string_translation;
}