You are here

public function SitewideAlertForm::__construct in Sitewide Alert 8

Constructs a new SitewideAlertForm.

Parameters

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

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

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

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

Overrides ContentEntityForm::__construct

File

src/Form/SitewideAlertForm.php, line 39

Class

SitewideAlertForm
Form controller for Sitewide Alert edit forms.

Namespace

Drupal\sitewide_alert\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, AccountProxyInterface $account) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->account = $account;
}