Removed ActorCaseRelation stuff- can't get it to work, will try again if it's asked for
This commit is contained in:
parent
7e4acae864
commit
42bf2c8e77
@ -138,18 +138,3 @@ function opencase_cases_theme_suggestions_oc_case(array $variables) {
|
||||
// $query->condition('access_filter.actors_involved_target_id', $linked_actor_id);
|
||||
//}
|
||||
|
||||
/**
|
||||
* Implements hook_theme_suggestions_HOOK().
|
||||
*/
|
||||
function opencase_cases_theme_suggestions_oc_actor_case_relation(array $variables) {
|
||||
$suggestions = [];
|
||||
$entity = $variables['elements']['#oc_actor_case_relation'];
|
||||
$sanitized_view_mode = strtr($variables['elements']['#view_mode'], '.', '_');
|
||||
|
||||
$suggestions[] = 'oc_actor_case_relation__' . $sanitized_view_mode;
|
||||
$suggestions[] = 'oc_actor_case_relation__' . $entity->bundle();
|
||||
$suggestions[] = 'oc_actor_case_relation__' . $entity->bundle() . '__' . $sanitized_view_mode;
|
||||
$suggestions[] = 'oc_actor_case_relation__' . $entity->id();
|
||||
$suggestions[] = 'oc_actor_case_relation__' . $entity->id() . '__' . $sanitized_view_mode;
|
||||
return $suggestions;
|
||||
}
|
||||
|
Reference in New Issue
Block a user