Adding swiper.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user