public function convertManufacturerStruct(Manufacturer
$manufacturer) { $data =
[ 'id' =>
$manufacturer->
getId(),
'name' =>
$manufacturer->
getName(),
'description' =>
$manufacturer->
getDescription(),
'metaTitle' =>
$manufacturer->
getMetaTitle(),
'metaDescription' =>
$manufacturer->
getMetaDescription(),
'metaKeywords' =>
$manufacturer->
getMetaKeywords(),
'link' =>
$manufacturer->
getLink(),
'image' =>
$manufacturer->
getCoverFile(),
'media' =>
$manufacturer->
getCoverMedia() ?
$this->
convertMediaStruct($manufacturer->
getCoverMedia()) : null,
'attributes' =>
$manufacturer->
getAttributes(),
];
if ($manufacturer->
hasAttribute('core'
)) { $data['attribute'
] =
$manufacturer->
getAttribute('core'
);
} return $this->eventManager->
filter('Legacy_Struct_Converter_Convert_Manufacturer',
$data,
[ 'manufacturer' =>
$manufacturer,
]);
}