registerArgument('name', 'string', 'Name of the constant', true); } /** * Render a constant * * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * * @return string Value of constant */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { return constant($arguments['name']); } }