Move all files to old/drupal/
This commit is contained in:
parent
8203e983d5
commit
7d76bf2968
468 changed files with 0 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Oliver Davies Recommendations module.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_image_style().
|
||||
*/
|
||||
function opdavies_recommendations_preprocess_image_style(array &$variables): void {
|
||||
if ($variables['style_name'] == 'recommendation') {
|
||||
$image = &$variables['image'];
|
||||
|
||||
$image['#attributes']['class'][] = 'bg-gray-200';
|
||||
$image['#attributes']['height'] = 100;
|
||||
$image['#attributes']['loading'] = 'lazy';
|
||||
$image['#attributes']['width'] = 100;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue