You are here

public function Oauth2TokenDeleteForm::__construct in Simple OAuth (OAuth2) & OpenID Connect 8.3

Same name and namespace in other branches
  1. 8.4 src/Entity/Form/Oauth2TokenDeleteForm.php \Drupal\simple_oauth\Entity\Form\Oauth2TokenDeleteForm::__construct()
  2. 5.x src/Entity/Form/Oauth2TokenDeleteForm.php \Drupal\simple_oauth\Entity\Form\Oauth2TokenDeleteForm::__construct()

Constructs a ContentEntityForm object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

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

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

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

Overrides ContentEntityForm::__construct

File

src/Entity/Form/Oauth2TokenDeleteForm.php, line 40

Class

Oauth2TokenDeleteForm
Provides a form for deleting Access Token entities.

Namespace

Drupal\simple_oauth\Entity\Form

Code

public function __construct(EntityManagerInterface $entity_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, MessengerInterface $messenger) {
  parent::__construct($entity_manager, $entity_type_bundle_info, $time);
  $this->messenger = $messenger;
}