You are here

public function LogActionFormBase::__construct in Log entity 2.x

Constructs a LogCloneActionForm form object.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

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

\Drupal\Core\Session\AccountInterface $user: The current user.

File

src/Form/LogActionFormBase.php, line 57

Class

LogActionFormBase
Base form class for configurable actions.

Namespace

Drupal\log\Form

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $entity_type_manager, AccountInterface $user) {
  $this->tempStoreFactory = $temp_store_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->user = $user;
  $this->logs = $this->tempStoreFactory
    ->get($this->actionId)
    ->get($this->user
    ->id());
}