protected function init() { parent::init(); $assets = $this->context->getAssetsService(); foreach ($this->props->style as $style) { if ($style->props->src) { $assets->addStylesheet($style->props->src); } else { $assets->addInlineCss($style->runAndGetContent(), $style->props->name); } } }