Add podcast listing page

This commit is contained in:
Oliver Davies 2025-05-25 19:48:07 +01:00
parent 203056d54a
commit fc1beaf3fb
10 changed files with 414 additions and 2 deletions

View file

@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
use Drupal\node\NodeInterface;
function opd_podcast_node_links_alter(array &$links, NodeInterface $entity, array &$context): void {
if ($entity->bundle() !== 'podcast_episode') {
return;
}
$links['node']['#links']['node-readmore']['title'] = t('Listen now<span class="visually-hidden"> to @title</span> →');
$links['node']['#links']['node-readmore']['attributes']['class'] = [
'p-0',
];
$links['#attributes']['class'][] = 'list-none';
$links['#attributes']['class'][] = 'm-0';
$links['#attributes']['class'][] = 'p-0';
}