Merge branch 'master' of https://figureslibres.io/gogs/bachir/popsu-d9
This commit is contained in:
@@ -84,8 +84,8 @@ function popsu_preprocess_views_view_fields(&$variables){
|
||||
|
||||
function popsu_preprocess_views_view_field(&$variables){
|
||||
// check if link to entoty option is true
|
||||
$settings = $variables['field']->options['settings'];
|
||||
if (isset($settings['link_to_entity']) && $settings['link_to_entity']) {
|
||||
$settings = isset($variables['field']->options['settings']) ? $variables['field']->options['settings'] : false;
|
||||
if ($settings && isset($settings['link_to_entity']) && $settings['link_to_entity']) {
|
||||
// get the entity and build the classes
|
||||
$entity = $variables['row']->_entity;
|
||||
|
||||
|
Reference in New Issue
Block a user