Oliver Davies
cbe60209e6
- Rename `opdavies_blog` to `blog`. - Rename `opdavies_blog_test` to `blog_test`. - Rename `opdavies_talks` to `talks`. - Rename `opdavies_talks_test` to `talks_test`. The files within the directories haven't changed, so there is no breaking change caused by renaming the directories. Please enter the commit message for your changes. Lines starting
19 lines
376 B
PHP
19 lines
376 B
PHP
<?php
|
|
|
|
/**
|
|
* @file
|
|
* Block preprocess hooks.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* Implements hook_preprocess_HOOK().
|
|
*/
|
|
function opdavies_blog_preprocess_block(array &$variables): void {
|
|
// Add the 'markup' class to blocks.
|
|
if (in_array($variables['plugin_id'], ['views_block:featured_blog_posts-block_1'])) {
|
|
$variables['attributes']['class'][] = 'markup';
|
|
}
|
|
}
|