some change that was done on live :(
This commit is contained in:
parent
8d345ce1f3
commit
0fe7bac594
@ -26,7 +26,6 @@ function opencase_no_cases_help($route_name, RouteMatchInterface $route_match) {
|
|||||||
|
|
||||||
function opencase_no_cases_entity_base_field_info($entity_type) {
|
function opencase_no_cases_entity_base_field_info($entity_type) {
|
||||||
if ($entity_type->id() === 'oc_activity') {
|
if ($entity_type->id() === 'oc_activity') {
|
||||||
$fields = array();
|
|
||||||
$fields['actors_involved'] = BaseFieldDefinition::create('entity_reference')
|
$fields['actors_involved'] = BaseFieldDefinition::create('entity_reference')
|
||||||
->setLabel(t('Participants'))
|
->setLabel(t('Participants'))
|
||||||
->setDescription(t('People involved in this activity. To add one, start typing their name.'))
|
->setDescription(t('People involved in this activity. To add one, start typing their name.'))
|
||||||
@ -51,8 +50,8 @@ function opencase_no_cases_entity_base_field_info($entity_type) {
|
|||||||
])
|
])
|
||||||
->setDefaultValueCallback('opencase_no_cases_actors_involved_callback')
|
->setDefaultValueCallback('opencase_no_cases_actors_involved_callback')
|
||||||
->setRequired(TRUE);
|
->setRequired(TRUE);
|
||||||
|
return $fields;
|
||||||
}
|
}
|
||||||
return $fields;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user