You are here

public function GdprMyAgreementsBlock::__construct in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Plugin/Block/GdprMyAgreementsBlock.php \Drupal\gdpr_consent\Plugin\Block\GdprMyAgreementsBlock::__construct()
  2. 8 modules/gdpr_consent/src/Plugin/Block/GdprMyAgreementsBlock.php \Drupal\gdpr_consent\Plugin\Block\GdprMyAgreementsBlock::__construct()

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

string $pluginId: The plugin_id for the plugin instance.

mixed $pluginDefinition: The plugin implementation definition.

\Drupal\Core\DependencyInjection\ClassResolverInterface $classResolver: The class resolver service.

\Drupal\Core\Session\AccountProxyInterface $currentUser: The user.

Overrides BlockPluginTrait::__construct

File

modules/gdpr_consent/src/Plugin/Block/GdprMyAgreementsBlock.php, line 74

Class

GdprMyAgreementsBlock
Provides a block to view a contact dashboard summary.

Namespace

Drupal\gdpr_consent\Plugin\Block

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, ClassResolverInterface $classResolver, AccountProxyInterface $currentUser) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->classResolver = $classResolver;
  $this->currentUser = $currentUser;
}