registerArgument('key', 'string', 'The theme key', false, 'ep'); $this->registerArgument('classes', 'array', 'The classes to apply per theme key', true); } /** * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return mixed */ public function render() { $themeKey = $this->arguments['key']; if (!array_key_exists((string) $themeKey, $this->arguments['classes'])) { return ''; } return $this->arguments['classes'][$themeKey]; } }