You are here

public function ServerForm::__construct in OAuth2 Server 8

Same name and namespace in other branches
  1. 2.0.x src/Form/ServerForm.php \Drupal\oauth2_server\Form\ServerForm::__construct()

ServerForm constructor.

Parameters

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/Form/ServerForm.php, line 41

Class

ServerForm
Class Server Form.

Namespace

Drupal\oauth2_server\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->storage = $entity_type_manager
    ->getStorage('oauth2_server');
}