Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
recurring_events-3266436
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
recurring_events-3266436
Commits
18334665
Commit
18334665
authored
2 years ago
by
Owen Bush
Committed by
Owen Bush
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove the existing basefield for event_instances
parent
5ea63361
No related branches found
Tags
previous/3365180-pm-warnings-for-2x/2024-06-26
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Entity/EventSeries.php
+0
-20
0 additions, 20 deletions
src/Entity/EventSeries.php
with
0 additions
and
20 deletions
src/Entity/EventSeries.php
+
0
−
20
View file @
18334665
...
...
@@ -494,26 +494,6 @@ class EventSeries extends EditorialContentEntityBase implements EventInterface {
],
]);
$fields
[
'event_instances'
]
=
BaseFieldDefinition
::
create
(
'entity_reference'
)
->
setLabel
(
t
(
'Events in this Series'
))
->
setDescription
(
t
(
'The events in this series.'
))
->
setRevisionable
(
FALSE
)
->
setSetting
(
'target_type'
,
'eventinstance'
)
->
setTranslatable
(
FALSE
)
->
setDisplayOptions
(
'view'
,
[
'type'
=>
'recurring_events_eventinstance_date'
,
'label'
=>
'above'
,
'weight'
=>
3
,
'settings'
=>
[
'link'
=>
TRUE
,
'date_format'
=>
'F jS, Y h:iA'
,
'separator'
=>
' - '
,
],
])
->
setDisplayConfigurable
(
'view'
,
TRUE
)
->
setDisplayConfigurable
(
'form'
,
FALSE
)
->
setCardinality
(
-
1
);
$fields
[
'langcode'
]
=
BaseFieldDefinition
::
create
(
'language'
)
->
setLabel
(
t
(
'Language code'
))
->
setDescription
(
t
(
'The language code of event entity.'
));
...
...
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