Skip to content
Snippets Groups Projects
Commit 18334665 authored by Owen Bush's avatar Owen Bush Committed by Owen Bush
Browse files

Remove the existing basefield for event_instances

parent 5ea63361
No related branches found
No related merge requests found
......@@ -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.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment