You are here

public function ScopeForm::__construct in OAuth2 Server 8

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

Scope Form 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/ScopeForm.php, line 40

Class

ScopeForm
Class Scope Form.

Namespace

Drupal\oauth2_server\Form

Code

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