class CommentSelection

Provides specific access control for the comment entity type.

Plugin annotation


@Plugin(
  id = "comment_default",
  module = "comment",
  label = @Translation("Comment selection"),
  entity_types = {"comment"},
  group = "default",
  weight = 1
)

Hierarchy

Expanded class hierarchy of CommentSelection

File

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

Namespace

Drupal\comment\Plugin\entity_reference\selection
View source

Members

Namesort descending Modifiers Type Description Overrides
CommentSelection::buildEntityQuery public function Overrides SelectionBase::buildEntityQuery(). Overrides SelectionBase::buildEntityQuery
CommentSelection::entityQueryAlter public function Overrides SelectionBase::entityQueryAlter(). Overrides SelectionBase::entityQueryAlter
SelectionBase::$entity protected property The entity object, or NULL
SelectionBase::$field protected property The field array.
SelectionBase::$instance protected property The instance array.
SelectionBase::countReferencableEntities public function Implements SelectionInterface::countReferencableEntities(). Overrides SelectionInterface::countReferencableEntities
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.