public function TransactionCreateDeriver::__construct in Transaction 8
Creates a new TransactionCreateDeriver object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\transaction\TransactorPluginManagerInterface $transactor_manager: The transactor plugin manager.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
- src/
Plugin/ RulesAction/ TransactionCreateDeriver.php, line 49
Class
- TransactionCreateDeriver
- Derives transaction create plugin definitions based on transaction types.
Namespace
Drupal\transaction\Plugin\RulesActionCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, TransactorPluginManagerInterface $transactor_manager, TranslationInterface $string_translation) {
$this->entityTypeManager = $entity_type_manager;
$this->transactorManager = $transactor_manager;
$this->stringTranslation = $string_translation;
}