drupal-twig-extensions
Version:
JavaScript implementation of Drupal’s Twig extensions
15 lines (12 loc) • 341 B
JavaScript
import { newTwingFunction } from '../../helpers/twing.js';
import config from '../../config.js';
import {
name,
options,
acceptedArguments,
activeThemePath,
} from './definition.js';
export async function callable() {
return activeThemePath(config);
}
export default newTwingFunction(name, callable, options, acceptedArguments);