Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphql_webform
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
graphql_webform
Merge requests
!21
Expose managed files on GraphQL 4.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Expose managed files on GraphQL 4.
issue/graphql_webform-3426811:3426811-managedfile-graphql4
into
2.x
Overview
0
Commits
2
Pipelines
3
Changes
10
Merged
Pieter Frenssen
requested to merge
issue/graphql_webform-3426811:3426811-managedfile-graphql4
into
2.x
1 year ago
Overview
0
Commits
2
Pipelines
3
Changes
10
Expand
Closes
#3426811
0
0
Merge request reports
Compare
2.x
version 2
12506a13
1 year ago
version 1
2c1ddd91
1 year ago
2.x (base)
and
latest version
latest version
12506a13
2 commits,
1 year ago
version 2
12506a13
2 commits,
1 year ago
version 1
2c1ddd91
1 commit,
1 year ago
10 files
+
124
−
192
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
src/Plugin/GraphQL/Fields/Element/WebformElementDescription.php deleted
100644 → 0
+
0
−
41
Options
<?php
declare
(
strict_types
=
1
);
namespace
Drupal\graphql_webform\Plugin\GraphQL\Fields\Element
;
use
Drupal\graphql\GraphQL\Execution\ResolveContext
;
use
Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase
;
use
GraphQL\Type\Definition\ResolveInfo
;
/**
* Retrieve the form element description.
*
* @GraphQLField(
* secure = true,
* parents = {
* "WebformElementTextBase",
* "WebformElementOptionsBase",
* "WebformElementManagedFileBase",
* "WebformElementDateBase",
* "WebformElementComposite",
* "WebformElementNumber",
* "WebformElementCheckbox",
* },
* id = "webform_element_description",
* name = "description",
* type = "String",
* )
*/
class
WebformElementDescription
extends
FieldPluginBase
{
/**
* {@inheritdoc}
*/
public
function
resolveValues
(
$value
,
array
$args
,
ResolveContext
$context
,
ResolveInfo
$info
)
{
if
(
isset
(
$value
[
'#description'
]))
{
yield
$value
[
'#description'
];
}
}
}
Loading