Adding swiper.

This commit is contained in:
Dan Chadwick
2024-08-22 08:55:41 -04:00
parent 928eb734e7
commit 2b5c281846
20 changed files with 140 additions and 13667 deletions

View File

@@ -11,8 +11,13 @@ function dchadwick_preprocess_node__fighter(&$vars) {
if (!$fighter_node) {
return;
}
assert($fighter_node instanceof NodeInterface);
// Need to ensure the type here.
// Only operate if view mode is full.
$is_full_view = $vars['view_mode'] == 'default' ?? FALSE;
if (!$is_full_view) {
return;
}
assert($fighter_node instanceof NodeInterface);
assert($fighter_node->bundle() == 'fighter');
$personal_fields = [
'age',