|
|
@ -34,6 +34,7 @@ function islandlives_views_pre_render(ViewExecutable $view) { |
|
|
|
'media', |
|
|
|
'media', |
|
|
|
'manage_members', |
|
|
|
'manage_members', |
|
|
|
'media_of', |
|
|
|
'media_of', |
|
|
|
|
|
|
|
'all_scholars', |
|
|
|
]; |
|
|
|
]; |
|
|
|
if (isset($view) && (in_array($view->storage->id(), $applicable_views))) { |
|
|
|
if (isset($view) && (in_array($view->storage->id(), $applicable_views))) { |
|
|
|
$view->element['#attached']['library'][] = 'islandlives/unpublished'; |
|
|
|
$view->element['#attached']['library'][] = 'islandlives/unpublished'; |
|
|
|