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;
}