Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
smart_date
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
smart_date
Commits
89fa95f6
Commit
89fa95f6
authored
6 months ago
by
Adam Bramley
Committed by
Martin Anderson-Clutz
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3463447
by acbramley: Fix diff 2.x integration
parent
3ef68099
No related branches found
No related tags found
1 merge request
!138
Fix Diff 2.x integration
Pipeline
#328121
passed
6 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/diff/Field/SmartdateFieldBuilder.php
+4
-4
4 additions, 4 deletions
src/Plugin/diff/Field/SmartdateFieldBuilder.php
with
4 additions
and
4 deletions
src/Plugin/diff/Field/SmartdateFieldBuilder.php
+
4
−
4
View file @
89fa95f6
...
...
@@ -26,7 +26,7 @@ class SmartdateFieldBuilder extends FieldDiffBuilderBase {
/**
* {@inheritdoc}
*/
public
function
build
(
FieldItemListInterface
$field_items
)
{
public
function
build
(
FieldItemListInterface
$field_items
)
:
mixed
{
$result
=
[];
$format
=
\Drupal
::
entityTypeManager
()
...
...
@@ -60,7 +60,7 @@ class SmartdateFieldBuilder extends FieldDiffBuilderBase {
/**
* {@inheritdoc}
*/
public
function
buildConfigurationForm
(
array
$form
,
FormStateInterface
$form_state
)
{
public
function
buildConfigurationForm
(
array
$form
,
FormStateInterface
$form_state
)
:
array
{
unset
(
$form
[
'format_type'
]);
// Change the description of the timezone_override element.
...
...
@@ -96,7 +96,7 @@ class SmartdateFieldBuilder extends FieldDiffBuilderBase {
/**
* {@inheritdoc}
*/
public
function
submitConfigurationForm
(
array
&
$form
,
FormStateInterface
$form_state
)
{
public
function
submitConfigurationForm
(
array
&
$form
,
FormStateInterface
$form_state
)
:
void
{
$this
->
configuration
[
'timezone_override'
]
=
$form_state
->
getValue
(
'timezone_override'
);
$this
->
configuration
[
'format'
]
=
$form_state
->
getValue
(
'format'
);
...
...
@@ -106,7 +106,7 @@ class SmartdateFieldBuilder extends FieldDiffBuilderBase {
/**
* {@inheritdoc}
*/
public
function
defaultConfiguration
()
{
public
function
defaultConfiguration
()
:
array
{
$default_configuration
=
[
'timezone_override'
=>
0
,
'format'
=>
'default'
,
...
...
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