class SelectionBase

Same name in this branch

Plugin implementation of the 'selection' entity_reference.

Plugin annotation


@Plugin(
  id = "default",
  module = "entity_reference",
  label = @Translation("Default"),
  group = "default",
  weight = 0,
  derivative = "Drupal\entity_reference\Plugin\Derivative\SelectionBase"
)

Hierarchy

Expanded class hierarchy of SelectionBase

5 files declare their use of SelectionBase

File

drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/entity_reference/selection/SelectionBase.php, line 30
Contains \Drupal\entity_reference\Plugin\entity_reference\selection\SelectionBase.

Namespace

Drupal\entity_reference\Plugin\entity_reference\selection
View source

Members

Namesort descending Modifiers Type Description Overrides
SelectionBase::$entity protected property The entity object, or NULL
SelectionBase::$field protected property The field array.
SelectionBase::$instance protected property The instance array.
SelectionBase::buildEntityQuery public function Builds an EntityQuery to get referencable entities. 4
SelectionBase::countReferencableEntities public function Implements SelectionInterface::countReferencableEntities(). Overrides SelectionInterface::countReferencableEntities
SelectionBase::entityQueryAlter public function Implements SelectionInterface::entityQueryAlter(). Overrides SelectionInterface::entityQueryAlter 3
SelectionBase::getReferencableEntities public function Implements SelectionInterface::getReferencableEntities(). Overrides SelectionInterface::getReferencableEntities 1
SelectionBase::reAlterQuery protected function Helper method: Passes a query to the alteration system again.
SelectionBase::settingsForm public static function Implements SelectionInterface::settingsForm(). Overrides SelectionInterface::settingsForm 2
SelectionBase::validateAutocompleteInput public function Implements SelectionInterface::validateAutocompleteInput(). Overrides SelectionInterface::validateAutocompleteInput
SelectionBase::validateReferencableEntities public function Implements SelectionInterface::validateReferencableEntities(). Overrides SelectionInterface::validateReferencableEntities
SelectionBase::__construct public function Constructs a SelectionBase object.