You are here

public function ContentEntityCloneBase::__construct in Entity Clone 8

Constructs a new ContentEntityCloneBase.

Parameters

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

string $entity_type_id: The entity type ID.

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

\Drupal\Component\Datetime\TimeInterface $time_service: A service for obtaining the system's time.

File

src/EntityClone/Content/ContentEntityCloneBase.php, line 63

Class

ContentEntityCloneBase
Class ContentEntityCloneBase.

Namespace

Drupal\entity_clone\EntityClone\Content

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, $entity_type_id, TimeInterface $time_service, AccountProxyInterface $currentUser) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeId = $entity_type_id;
  $this->timeService = $time_service;
  $this->currentUser = $currentUser;
}