You are here

public function PCPBlock::__construct in Profile Complete Percent 8

PCPBlock constructor.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Session\AccountInterface $accountProxy: The current user account proxy.

\Drupal\pcp\PcpServiceInterface $pcpService: The PCP Service.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/PCPBlock.php, line 52

Class

PCPBlock
Provides a 'PCP' block.

Namespace

Drupal\pcp\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountInterface $accountProxy, PcpServiceInterface $pcpService) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->accountProxy = $accountProxy;
  $this->pcpService = $pcpService;
}