pluginreference-2.0.0/tests/modules/pluginreference_test/src/Plugin/PluginReferenceSelection/FieldWidgetAdvancedSelection.php
tests/modules/pluginreference_test/src/Plugin/PluginReferenceSelection/FieldWidgetAdvancedSelection.php
<?php
namespace Drupal\pluginreference_test\Plugin\PluginReferenceSelection;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\pluginreference\Attribute\PluginReferenceSelection;
use Drupal\pluginreference\Plugin\PluginReferenceSelection\DefaultSelection;
/**
* Provides a plugin reference selection for field widgets.
*
* This class is used in the tests to check the weight and grouping.
*/
#[PluginReferenceSelection(
id: 'field_widget_advanced',
label: new TranslatableMarkup('Advanced widget'),
plugin_types: ['field.widget'],
group: 'field_widget_advanced',
weight: 0,
)]
class FieldWidgetAdvancedSelection extends DefaultSelection {
}
