Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
markup
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
markup
Commits
517b941f
Commit
517b941f
authored
9 months ago
by
Joshua Sedler
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3431816
: Automated Drupal 11 compatibility fixes for markup
parent
33872952
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
markup.info.yml
+1
-1
1 addition, 1 deletion
markup.info.yml
src/Plugin/Field/FieldType/MarkupItem.php
+2
-2
2 additions, 2 deletions
src/Plugin/Field/FieldType/MarkupItem.php
src/Plugin/Field/FieldWidget/MarkupWidget.php
+1
-1
1 addition, 1 deletion
src/Plugin/Field/FieldWidget/MarkupWidget.php
with
4 additions
and
4 deletions
markup.info.yml
+
1
−
1
View file @
517b941f
...
...
@@ -2,6 +2,6 @@ name: Markup
description
:
Defines a field type for markup.
type
:
module
package
:
Field types
core_version_requirement
:
^8.9 ||
^9 || ^10
core_version_requirement
:
^9 || ^10
|| ^11
dependencies
:
-
drupal:field
This diff is collapsed.
Click to expand it.
src/Plugin/Field/FieldType/MarkupItem.php
+
2
−
2
View file @
517b941f
...
...
@@ -14,7 +14,7 @@ use Drupal\Core\TypedData\DataDefinition;
* id = "markup",
* label = @Translation("Markup"),
* description = @Translation("Provides field to output markup on the entities edit form"),
* category =
@Translation("General")
,
* category =
"formatted_text"
,
* default_widget = "markup",
* default_formatter = "markup",
* list_class = "\Drupal\markup\Field\MarkupItemList",
...
...
@@ -67,7 +67,7 @@ class MarkupItem extends FieldItemBase {
$element
[
'markup'
]
=
[
'#type'
=>
'text_format'
,
'#title'
=>
$this
->
t
(
'Markup'
),
'#default_value'
=>
isset
(
$settings
[
'markup'
][
'value'
])
?
$settings
[
'markup'
][
'value'
]
:
''
,
'#default_value'
=>
isset
(
$settings
[
'markup'
][
'value'
])
?
?
''
,
'#format'
=>
!
empty
(
$settings
[
'markup'
][
'format'
])
?
$settings
[
'markup'
][
'format'
]
:
filter_default_format
(),
'#required'
=>
TRUE
,
'#rows'
=>
15
,
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Field/FieldWidget/MarkupWidget.php
+
1
−
1
View file @
517b941f
...
...
@@ -2,8 +2,8 @@
namespace
Drupal\markup\Plugin\Field\FieldWidget
;
use
Drupal\Core\Field\WidgetBase
;
use
Drupal\Core\Field\FieldItemListInterface
;
use
Drupal\Core\Field\WidgetBase
;
use
Drupal\Core\Form\FormStateInterface
;
/**
...
...
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