You are here

public function PrivateMessageActionsBlock::__construct in Private Message 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Block/PrivateMessageActionsBlock.php \Drupal\private_message\Plugin\Block\PrivateMessageActionsBlock::__construct()

Constructs a PrivateMessageForm object.

Parameters

array $configuration: The block configuration.

string $plugin_id: The ID of the plugin.

mixed $plugin_definition: The plugin definition.

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

\Drupal\Core\Config\ConfigFactory $configFactory: The config factory service.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/PrivateMessageActionsBlock.php, line 54

Class

PrivateMessageActionsBlock
Provides the private message actions block.

Namespace

Drupal\private_message\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxyInterface $currentUser, ConfigFactory $configFactory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentUser = $currentUser;
  $this->configFactory = $configFactory;
}