Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityReferenceSelection.php

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 = "default:node_advanced",
entity_types = {"node"},
group = "default",
weight = 5

Type: string

File

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

Class

EntityReferenceSelection
Defines an EntityReferenceSelection plugin annotation object.

Namespace

Drupal\Core\Entity\Annotation

Code

public $group;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal