You are here

public function Broken::countReferenceableEntities in Drupal 9

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

Counts entities that are referenceable.

Parameters

string $match: (optional) Text to match the label against. Defaults to NULL.

string $match_operator: (optional) Operator to be used for string matching. Defaults to "CONTAINS".

Return value

int The number of referenceable entities.

Overrides SelectionInterface::countReferenceableEntities

File

core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php, line 39

Class

Broken
Defines a fallback plugin for missing entity_reference selection plugins.

Namespace

Drupal\Core\Entity\Plugin\EntityReferenceSelection

Code

public function countReferenceableEntities($match = NULL, $match_operator = 'CONTAINS') {
  return 0;
}