Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webform_entity_reference_exclude
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
webform_entity_reference_exclude
Commits
f346048c
Commit
f346048c
authored
3 weeks ago
by
Arun Sahijpal
Committed by
Sven Decabooter
3 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3519870
by arunsahijpal, svendecabooter: Use PHP attributes instead of annotations
parent
160084ca
No related branches found
No related tags found
1 merge request
!3
Issue #3519870: Used PHP attributes instead of annotations.
Pipeline
#491100
passed
3 weeks ago
Stage: build
Stage: validate
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Field/FieldWidget/WebformEntityReferenceExcludeSelectWidget.php
+8
-10
8 additions, 10 deletions
...FieldWidget/WebformEntityReferenceExcludeSelectWidget.php
with
8 additions
and
10 deletions
src/Plugin/Field/FieldWidget/WebformEntityReferenceExcludeSelectWidget.php
+
8
−
10
View file @
f346048c
...
...
@@ -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
{
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment