You are here

public function AuthorizationProfileForm::__construct in Authorization 8

Constructs a AuthorizationProfileForm object.

Parameters

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

\Drupal\authorization\Provider\ProviderPluginManager $provider_plugin_manager: The Provider plugin manager.

\Drupal\authorization\Consumer\ConsumerPluginManager $consumer_plugin_manager: The Consumer plugin manager.

File

src/Form/AuthorizationProfileForm.php, line 69

Class

AuthorizationProfileForm
Authorization profile form.

Namespace

Drupal\authorization\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ProviderPluginManager $provider_plugin_manager, ConsumerPluginManager $consumer_plugin_manager) {
  $this->storage = $entity_type_manager
    ->getStorage('authorization_profile');
  $this->providerPluginManager = $provider_plugin_manager;
  $this->consumerPluginManager = $consumer_plugin_manager;
}