public function ViewsSelection::countReferenceableEntities in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 241 - Contains \Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection.
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();
}