public function ListingEmpty::__construct in Drupal 10
Same name in this branch
- 10 core/modules/node/src/Plugin/views/area/ListingEmpty.php \Drupal\node\Plugin\views\area\ListingEmpty::__construct()
- 10 core/modules/block_content/src/Plugin/views/area/ListingEmpty.php \Drupal\block_content\Plugin\views\area\ListingEmpty::__construct()
Same name and namespace in other branches
- 8 core/modules/block_content/src/Plugin/views/area/ListingEmpty.php \Drupal\block_content\Plugin\views\area\ListingEmpty::__construct()
- 9 core/modules/block_content/src/Plugin/views/area/ListingEmpty.php \Drupal\block_content\Plugin\views\area\ListingEmpty::__construct()
Constructs a new ListingEmpty.
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\Access\AccessManagerInterface $access_manager: The access manager.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- core/
modules/ block_content/ src/ Plugin/ views/ area/ ListingEmpty.php, line 48
Class
- ListingEmpty
- Defines an area plugin to display a block add link.
Namespace
Drupal\block_content\Plugin\views\areaCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, AccessManagerInterface $access_manager, AccountInterface $current_user) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->accessManager = $access_manager;
$this->currentUser = $current_user;
}