- Issue created by @promo-il
XXX [current-page:url:unaliased:path] YYY → XXX node-6 YYY
\context\src\Plugin\ContextReaction\BodyClass.php
public function execute(array &$vars = []) {
$context_body_class = explode(' ', $this->getConfiguration()['body_class']);
$context_body_class = array_map(function($val) {
return (str_starts_with($val, '[')) ? trim(str_replace(['/'],['-'], \Drupal::token()->replace($val)), '-') : $val; }, $context_body_class);
return ['class' => $context_body_class];
/*return [
'class' => explode(' ', $this->getConfiguration()['body_class']),
];*/
}
Active
5.0
Code