You are here

public function EntityPresaveDeriver::__construct in Rules 8.3

Creates a new EntityPresaveDeriver object.

Parameters

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

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

File

src/Plugin/RulesEvent/EntityPresaveDeriver.php, line 34

Class

EntityPresaveDeriver
Derives entity presave plugin definitions based on content entity types.

Namespace

Drupal\rules\Plugin\RulesEvent

Code

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