'active' =>
$blog->
isActive(),
'shortDescription' =>
$blog->
getShortDescription(),
'description' =>
$blog->
getDescription(),
'displayDate' =>
$blog->
getDisplayDate(),
'categoryId' =>
$blog->
getCategoryId(),
'template' =>
$blog->
getTemplate(),
'metaKeyWords' =>
$blog->
getMetaKeywords(),
'metaKeywords' =>
$blog->
getMetaKeywords(),
'metaDescription' =>
$blog->
getMetaDescription(),
'metaTitle' =>
$blog->
getMetaTitle(),
'views' =>
$blog->
getViews(),
'mediaList' =>
array_map([$this, 'convertMediaStruct'
],
$blog->
getMedias()),
'attributes' =>
$blog->
getAttributes(),
];
if ($blog->
hasAttribute('core'
)) { $data['attribute'
] =
$blog->
getAttribute('core'
);
} $data['media'
] =
reset($data['mediaList'
]);
return $this->eventManager->
filter('Legacy_Struct_Converter_Convert_Blog',
$data,
[ 'blog' =>
$blog,
]);