function Broken::__construct
Same name in other branches
- 10 core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken::__construct()
- 11.x core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken::__construct()
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\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountInterface $current_user) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->currentUser = $current_user;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.