Example #1
0
 /**
  * @param ProductAttributeMediaGalleryEntryInterface $entry
  * @return array
  */
 protected function convertFromMediaGalleryInterface(ProductAttributeMediaGalleryEntryInterface $entry)
 {
     $entryArray = ["value_id" => $entry->getId(), "file" => $entry->getFile(), "label" => $entry->getLabel(), "position" => $entry->getPosition(), "disabled" => $entry->isDisabled(), "types" => $entry->getTypes(), "content" => $this->convertFromMediaGalleryEntryContentInterface($entry->getContent())];
     return $entryArray;
 }
 /**
  * @param ProductAttributeMediaGalleryEntryInterface $entry
  * @return array
  */
 public function convertFrom(ProductAttributeMediaGalleryEntryInterface $entry)
 {
     $entryArray = ['value_id' => $entry->getId(), 'file' => $entry->getFile(), 'label' => $entry->getLabel(), 'position' => $entry->getPosition(), 'disabled' => $entry->isDisabled(), 'types' => $entry->getTypes(), 'media_type' => $entry->getMediaType(), 'content' => $this->convertFromMediaGalleryEntryContentInterface($entry->getContent())];
     return $entryArray;
 }