@christianwiedemann/drupal-twig-extensions
Version:
JavaScript implementation of Drupal’s Twig extensions
14 lines (13 loc) • 473 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _twing = require("twing");
const newTwingFunction = (name, callable, options, acceptedArguments = []) => (0, _twing.createSynchronousFunction)(name, (_executionContext, ...value) => {
return callable(...value);
},
// @TODO File bug report; 3rd argument should be options.
acceptedArguments, options);
var _default = newTwingFunction;
exports.default = _default;