W3cubDocs

/Drupal 8

public property EntityReferenceSelection::$group

The selection plugin group.

This property is used to allow selection plugins to target a specific entity type while also inheriting the code of an existing selection plugin. For example, if we want to override the NodeSelection from the 'default' selection type, we can define the annotation of a new plugin as follows:

id = "node_advanced",
entity_types = {"node"},
group = "default",
weight = 5

Type: string

File

core/lib/Drupal/Core/Entity/Annotation/EntityReferenceSelection.php, line 55

Class

EntityReferenceSelection
Defines an EntityReferenceSelection plugin annotation object.

Namespace

Drupal\Core\Entity\Annotation

Code

public $group;

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Annotation!EntityReferenceSelection.php/property/EntityReferenceSelection::group/8.1.x