activity provider field now uses case_providers view

This commit is contained in:
naomi 2022-05-19 07:46:34 +01:00
parent 9351768b25
commit f671580ed7

View File

@ -247,7 +247,12 @@ class OCActivity extends RevisionableContentEntityBase implements OCActivityInte
->setLabel(t('Provider')) ->setLabel(t('Provider'))
->setRevisionable(TRUE) ->setRevisionable(TRUE)
->setSetting('target_type', 'oc_actor') ->setSetting('target_type', 'oc_actor')
->setSetting('handler', 'default') ->setSetting('handler', 'views')
->setSetting('handler_settings', [
'view' => [
'view_name' => 'case_providers',
'display_name' => 'entity_reference_1'
]])
->setDefaultValueCallback('\Drupal\opencase_entities\Entity\OCActivity::loggedInActorId') ->setDefaultValueCallback('\Drupal\opencase_entities\Entity\OCActivity::loggedInActorId')
->setDisplayConfigurable('form', true) ->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true); ->setDisplayConfigurable('view', true);