Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function validate($content, $locale)
 {
     $sortedTags = $this->getTags($content);
     if (0 === count($sortedTags)) {
         return [];
     }
     $result = [];
     foreach ($sortedTags as $name => $tags) {
         $result = array_merge($result, $this->tagRegistry->getTag($name, 'html')->validateAll($tags, $locale));
     }
     return $result;
 }