You are here

public function SelectionInterface::countReferenceableEntities in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::countReferenceableEntities()

Counts entities that are referenceable.

Return value

int The number of referenceable entities.

4 methods override SelectionInterface::countReferenceableEntities()
Broken::countReferenceableEntities in core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php
Counts entities that are referenceable.
DefaultSelection::countReferenceableEntities in core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php
Counts entities that are referenceable.
TestSelection::countReferenceableEntities in core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php
Counts entities that are referenceable.
ViewsSelection::countReferenceableEntities in core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php
Counts entities that are referenceable.

File

core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php, line 33

Class

SelectionInterface
Interface definition for Entity Reference Selection plugins.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

public function countReferenceableEntities($match = NULL, $match_operator = 'CONTAINS');