public function ViewsSelection::countReferenceableEntities in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php \Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection::countReferenceableEntities()
Counts entities that are referenceable.
Return value
int The number of referenceable entities.
Overrides SelectionInterface::countReferenceableEntities
File
- core/
modules/ views/ src/ Plugin/ EntityReferenceSelection/ ViewsSelection.php, line 309
Class
- ViewsSelection
- Plugin implementation of the 'selection' entity_reference.
Namespace
Drupal\views\Plugin\EntityReferenceSelectionCode
public function countReferenceableEntities($match = NULL, $match_operator = 'CONTAINS') {
$this
->getReferenceableEntities($match, $match_operator);
return $this->view->pager
->getTotalItems();
}