protected function execute(array $arguments) { if (isset($arguments[0])) { $text = \ResText::findFirstByHash_id($arguments[0]); if ($text) { return $text->content; } return ''; } throw new InvalidArgumentException('strings invalid'); }