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

Use the entity type object

parent c931722e
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ function recurring_events_registration_entity_base_field_info_alter(&$fields, En
->setTranslatable(FALSE)
->setCardinality(1)
->setRequired(FALSE)
->setTargetEntityTypeId('eventseries')
->setTargetEntityTypeId($entity_type->id())
->setDisplayOptions('form', [
'type' => 'event_registration',
'weight' => 3,
......
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