Ejemplo n.º 1
0
 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');
 }