function EntityCreateDeriver::__construct
Creates a new EntityCreateDeriver object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
-
src/
Plugin/ RulesAction/ EntityCreateDeriver.php, line 48
Class
- EntityCreateDeriver
- Derives entity create plugin definitions based on content entity types.
Namespace
Drupal\rules\Plugin\RulesActionCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, TranslationInterface $string_translation) {
$this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager;
$this->stringTranslation = $string_translation;
}