class ViewsSelection

Plugin implementation of the 'selection' entity_reference.

Plugin annotation


@Plugin(
  id = "views",
  module = "views",
  label = @Translation("Views: Filter by an entity reference view"),
  group = "views",
  weight = 0
)

Hierarchy

Expanded class hierarchy of ViewsSelection

File

drupal/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php, line 27
Contains \Drupal\views\Plugin\entity_reference\selection\ViewsSelection.

Namespace

Drupal\views\Plugin\entity_reference\selection
View source

Members

Namesort descending Modifiers Type Description Overrides
ViewsSelection::$view protected property The loaded View object.
ViewsSelection::countReferencableEntities public function Implements \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface::countReferencableEntities(). Overrides SelectionInterface::countReferencableEntities
ViewsSelection::entityQueryAlter public function Implements \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface::entityQueryAlter(). Overrides SelectionInterface::entityQueryAlter
ViewsSelection::getReferencableEntities public function Implements \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface::getReferencableEntities(). Overrides SelectionInterface::getReferencableEntities
ViewsSelection::initializeView protected function Initializes a view.
ViewsSelection::settingsForm public static function Implements \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface::settingsForm(). Overrides SelectionInterface::settingsForm
ViewsSelection::settingsFormValidate public function Element validate; Check View is valid.
ViewsSelection::validateAutocompleteInput public function Implements \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface::validateAutocompleteInput(). Overrides SelectionInterface::validateAutocompleteInput
ViewsSelection::validateReferencableEntities public function Implements \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface::validateReferencableEntities(). Overrides SelectionInterface::validateReferencableEntities
ViewsSelection::__construct public function Constructs a View selection handler.