/**
  * Presents an attribute option
  *
  * @param string $value
  * @param string $optionName
  *
  * @return string|null
  */
 public function attributeOptionPresenter($value, $optionName)
 {
     $presenter = $this->presenterRegistry->getAttributeOptionPresenter($optionName);
     if (null !== $presenter) {
         $locale = $this->localeResolver->getCurrentLocale();
         if (null !== $locale) {
             return $presenter->present($value, ['locale' => $locale]);
         }
     }
     return $value;
 }