public function PluginBase::init in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::init()
Initialize the plugin.
Parameters
\Drupal\views\ViewExecutable $view: The view object.
\Drupal\views\Plugin\views\display\DisplayPluginBase $display: The display handler.
array $options: The options configured for this plugin.
Overrides ViewsPluginInterface::init
8 calls to PluginBase::init()
- DataFieldRow::init in core/
modules/ rest/ src/ Plugin/ views/ row/ DataFieldRow.php - Initialize the plugin.
- EntityRow::init in core/
modules/ views/ src/ Plugin/ views/ row/ EntityRow.php - Initialize the plugin.
- HandlerBase::init in core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php - Initialize the plugin.
- None::init in core/
modules/ views/ src/ Plugin/ views/ pager/ None.php - Initialize the plugin.
- Sql::init in core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php - Initialize the plugin.
8 methods override PluginBase::init()
- DataFieldRow::init in core/
modules/ rest/ src/ Plugin/ views/ row/ DataFieldRow.php - Initialize the plugin.
- EntityRow::init in core/
modules/ views/ src/ Plugin/ views/ row/ EntityRow.php - Initialize the plugin.
- HandlerBase::init in core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php - Initialize the plugin.
- None::init in core/
modules/ views/ src/ Plugin/ views/ pager/ None.php - Initialize the plugin.
- Sql::init in core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php - Initialize the plugin.
File
- core/
modules/ views/ src/ Plugin/ views/ PluginBase.php, line 137
Class
- PluginBase
- Base class for any views plugin types.
Namespace
Drupal\views\Plugin\viewsCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
$this->view = $view;
$this
->setOptionDefaults($this->options, $this
->defineOptions());
$this->displayHandler = $display;
$this
->unpackOptions($this->options, $options);
}