interface SelectionInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface
Interface definition for Entity Reference Selection plugins.
Hierarchy
- interface \Drupal\Core\Plugin\PluginFormInterface
- interface \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface
Expanded class hierarchy of SelectionInterface
All classes that implement SelectionInterface
See also
\Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager
\Drupal\Core\Entity\Annotation\EntityReferenceSelection
3 files declare their use of SelectionInterface
- Broken.php in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ Broken.php - Contains \Drupal\Core\Entity\Plugin\EntityReferenceSelection\Broken.
- DefaultSelection.php in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ DefaultSelection.php - Contains \Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection.
- ViewsSelection.php in core/
modules/ views/ src/ Plugin/ EntityReferenceSelection/ ViewsSelection.php - Contains \Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityReferenceSelection/ SelectionInterface.php, line 20 - Contains \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface.
Namespace
Drupal\Core\Entity\EntityReferenceSelectionView source
interface SelectionInterface extends PluginFormInterface {
/**
* Gets the list of referenceable entities.
*
* @return array
* A nested array of entities, the first level is keyed by the
* entity bundle, which contains an array of entity labels (escaped),
* keyed by the entity ID.
*/
public function getReferenceableEntities($match = NULL, $match_operator = 'CONTAINS', $limit = 0);
/**
* Counts entities that are referenceable.
*
* @return int
* The number of referenceable entities.
*/
public function countReferenceableEntities($match = NULL, $match_operator = 'CONTAINS');
/**
* Validates which existing entities can be referenced.
*
* @return array
* An array of valid entity IDs.
*/
public function validateReferenceableEntities(array $ids);
/**
* Allows the selection to alter the SelectQuery generated by EntityFieldQuery.
*
* @param \Drupal\Core\Database\Query\SelectInterface $query
* A Select Query object.
*/
public function entityQueryAlter(SelectInterface $query);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginFormInterface:: |
public | function | Form constructor. | 23 |
PluginFormInterface:: |
public | function | Form submission handler. | 21 |
PluginFormInterface:: |
public | function | Form validation handler. | 12 |
SelectionInterface:: |
public | function | Counts entities that are referenceable. | 3 |
SelectionInterface:: |
public | function | Allows the selection to alter the SelectQuery generated by EntityFieldQuery. | 3 |
SelectionInterface:: |
public | function | Gets the list of referenceable entities. | 3 |
SelectionInterface:: |
public | function | Validates which existing entities can be referenced. | 3 |