function ViewsBlock::__construct
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/Derivative/ViewsBlock.php \Drupal\views\Plugin\Derivative\ViewsBlock::__construct()
- 10 core/modules/views/src/Plugin/Derivative/ViewsBlock.php \Drupal\views\Plugin\Derivative\ViewsBlock::__construct()
- 9 core/modules/views/src/Plugin/Derivative/ViewsBlock.php \Drupal\views\Plugin\Derivative\ViewsBlock::__construct()
- 8.9.x core/modules/views/src/Plugin/Derivative/ViewsBlock.php \Drupal\views\Plugin\Derivative\ViewsBlock::__construct()
Constructs a ViewsBlock object.
Parameters
string $basePluginId: The base plugin ID.
\Drupal\Core\Entity\EntityStorageInterface $viewStorage: The entity storage to load views.
File
-
core/
modules/ views/ src/ Plugin/ Derivative/ ViewsBlock.php, line 42
Class
- ViewsBlock
- Provides block plugin definitions for all Views block displays.
Namespace
Drupal\views\Plugin\DerivativeCode
public function __construct(protected $basePluginId, protected EntityStorageInterface $viewStorage) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.