You are here

public function Broken::__construct in Drupal 9

Creates a Broken Block instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

Overrides BlockPluginTrait::__construct

File

core/lib/Drupal/Core/Block/Plugin/Block/Broken.php, line 47

Class

Broken
Defines a fallback plugin for missing block plugins.

Namespace

Drupal\Core\Block\Plugin\Block

Code

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