Constructs a View selection handler.
File
- drupal/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php, line 39
- Contains \Drupal\views\Plugin\entity_reference\selection\ViewsSelection.
Class
- ViewsSelection
- Plugin implementation of the 'selection' entity_reference.
Namespace
Drupal\views\Plugin\entity_reference\selection
Code
public function __construct($field, $instance = NULL, EntityInterface $entity = NULL) {
$this->field = $field;
$this->instance = $instance;
$this->entity = $entity;
}