Remove unnecessary preprocess functions
This commit is contained in:
parent
15fc49bbab
commit
86f22214a2
@ -103,45 +103,3 @@ function prijava_1ka_theme()
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* Never cache
|
||||
*/
|
||||
function prijava_1ka_preprocess(&$variables)
|
||||
{
|
||||
// if(!empty($variables['plugin_id']) && in_array($variables['plugin_id'], [
|
||||
// 'prijava_intro_block',
|
||||
// 'prijava_block',
|
||||
// 'prijava_obnovitev_gesla_block',
|
||||
// 'prijava_obnovitev_gesla_aktivacija_blok',
|
||||
// 'prijava_podatki_o_uporabniku_block'
|
||||
// ])
|
||||
// ){
|
||||
|
||||
if(\Drupal::languageManager()->getCurrentLanguage()->getId() == 'sl') {
|
||||
include (__DIR__ . '/../../../../../../lang/1.php');
|
||||
}else{
|
||||
include (__DIR__ . '/../../../../../../lang/2.php');
|
||||
}
|
||||
$variables['lang'] = $lang;
|
||||
$variables['#cache']['max-age'] = 0;
|
||||
// }
|
||||
|
||||
return $variables;
|
||||
}
|
||||
|
||||
function prijava_1ka_preprocess_block(&$variables)
|
||||
{
|
||||
if(!empty($variables['plugin_id']) && in_array($variables['plugin_id'], [
|
||||
'prijava_intro_block',
|
||||
'prijava_block',
|
||||
'prijava_obnovitev_gesla_block',
|
||||
'prijava_obnovitev_gesla_aktivacija_blok',
|
||||
'prijava_podatki_o_uporabniku_block'
|
||||
])
|
||||
){;
|
||||
$variables['#cache']['max-age'] = 0;
|
||||
}
|
||||
|
||||
return $variables;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user