1 EntityReferenceSelectionHandlerViews.inc EntityReferenceSelectionHandlerViews::countReferencableEntities($match = NULL, $match_operator = 'CONTAINS')

Implements EntityReferenceHandler::countReferencableEntities().

Overrides EntityReferenceSelectionHandlerInterface::countReferencableEntities

File

core/modules/entityreference/plugins/selection/EntityReferenceSelectionHandlerViews.inc, line 152

Class

EntityReferenceSelectionHandlerViews
Entity handler for Views.

Code

function countReferencableEntities($match = NULL, $match_operator = 'CONTAINS') {
  $this->getReferencableEntities($match, $match_operator);
  return $this->view->total_items;
}