@christianwiedemann/drupal-twig-extensions
Version:
JavaScript implementation of Drupal’s Twig extensions
10 lines (7 loc) • 317 B
JavaScript
import { newTwigExtension } from '../../helpers/twig.js';
import config from '../../config.js';
import { name, options, acceptedArguments, activeTheme } from './definition.js';
export function callable() {
return activeTheme(config);
}
export default newTwigExtension(name, callable, options, acceptedArguments);