You are here

public function ListingEmpty::__construct in Drupal 10

Same name in this branch
  1. 10 core/modules/node/src/Plugin/views/area/ListingEmpty.php \Drupal\node\Plugin\views\area\ListingEmpty::__construct()
  2. 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
  1. 8 core/modules/block_content/src/Plugin/views/area/ListingEmpty.php \Drupal\block_content\Plugin\views\area\ListingEmpty::__construct()
  2. 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\area

Code

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;
}