Sulu\Bundle\ContentBundle\Markup\LinkTag::validateAll PHP Метод

validateAll() публичный Метод

public validateAll ( array $attributesByTag, $locale )
$attributesByTag array
    public function validateAll(array $attributesByTag, $locale)
    {
        $items = $this->preload($attributesByTag, $locale, false);
        $result = [];
        foreach ($attributesByTag as $tag => $attributes) {
            $provider = $this->getValue($attributes, 'provider', self::DEFAULT_PROVIDER);
            if (!array_key_exists($provider . '-' . $attributes['href'], $items)) {
                $result[$tag] = self::VALIDATE_REMOVED;
            } elseif (!$items[$provider . '-' . $attributes['href']]->isPublished()) {
                $result[$tag] = self::VALIDATE_UNPUBLISHED;
            }
        }
        return $result;
    }