/**
  * The seo metadata that was edited embedded has the same locale as the
  * containing document.
  *
  * @param SeoAwareInterface $seoAware
  */
 private function propagateLocale(SeoAwareInterface $seoAware)
 {
     if (!$seoAware instanceof TranslatableInterface) {
         return;
     }
     $seoMetadata = $seoAware->getSeoMetadata();
     if (!$seoMetadata instanceof TranslatableInterface) {
         return;
     }
     $seoMetadata->setLocale($seoAware->getLocale());
 }