You are here

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

Constructs a LogForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

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

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

Overrides ContentEntityForm::__construct

File

src/Form/LogForm.php, line 50

Class

LogForm
Form controller for Log entities.

Namespace

Drupal\log\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, AccountInterface $current_user, DateFormatterInterface $date_formatter) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->currentUser = $current_user;
  $this->dateFormatter = $date_formatter;
}