Skip to content
Snippets Groups Projects
Commit f346048c authored by Arun Sahijpal's avatar Arun Sahijpal Committed by Sven Decabooter
Browse files

Issue #3519870 by arunsahijpal, svendecabooter: Use PHP attributes instead of annotations

parent 160084ca
No related branches found
No related tags found
1 merge request!3Issue #3519870: Used PHP attributes instead of annotations.
Pipeline #491100 passed
......@@ -5,20 +5,18 @@ namespace Drupal\webform_entity_reference_exclude\Plugin\Field\FieldWidget;
use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\webform\Entity\Webform;
use Drupal\Core\Field\Attribute\FieldWidget;
use Drupal\webform\Plugin\Field\FieldWidget\WebformEntityReferenceSelectWidget;
/**
* Plugin for the 'webform_entity_reference_exclude_select' widget.
*
* @FieldWidget(
* id = "webform_entity_reference_exclude_select",
* label = @Translation("Select list with excluded webforms"),
* description = @Translation("A select field to select webforms, with excluded options."),
* field_types = {
* "webform"
* }
* )
* Provides a widget for selecting webforms, excluding certain entries.
*/
#[FieldWidget(
id: "webform_entity_reference_exclude_select",
label: "Select list with excluded webforms",
description: "A select field to select webforms, with excluded options.",
field_types: ["webform"]
)]
class WebformEntityReferenceExcludeSelectWidget extends WebformEntityReferenceSelectWidget {
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment