Counts entities that are referencable by a given field.
Return value
int
The number of referencable entities.
File
- drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/Selection/SelectionInterface.php, line 37
- Contains \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface.
Class
- SelectionInterface
- Interface definition for Entity Reference selection plugins.
Namespace
Drupal\entity_reference\Plugin\Type\Selection
Code
public function countReferencableEntities($match = NULL, $match_operator = 'CONTAINS');