'email' =>
$vote->
getEmail(),
'answer' =>
$vote->
getAnswer(),
'datum' => '0000-00-00 00:00:00',
'answer_date' => '0000-00-00 00:00:00',
'attributes' =>
$vote->
getAttributes(),
];
if ($vote->
hasAttribute('core'
)) { $data['attribute'
] =
$vote->
getAttribute('core'
);
} if ($vote->
getCreatedAt() instanceof DateTimeInterface
) { $data['datum'
] =
$vote->
getCreatedAt()->
format('Y-m-d H:i:s'
);
} if ($vote->
getAnsweredAt() instanceof DateTimeInterface
) { $data['answer_date'
] =
$vote->
getAnsweredAt()->
format('Y-m-d H:i:s'
);
} return $this->eventManager->
filter('Legacy_Struct_Converter_Convert_Vote',
$data,
[ 'vote' =>
$vote,
]);
}