private function loadData()
{
$result = [];
if ($this->ids !== null && count($this->ids) > 0) {
$this->contentQueryBuilder->init(['ids' => $this->ids, 'properties' => isset($this->params['properties']) ? $this->params['properties']->getValue() : [], 'published' => !$this->showDrafts]);
$pages = $this->contentQueryExecutor->execute($this->webspaceKey, [$this->languageCode], $this->contentQueryBuilder);
// init vars
$map = [];
// map pages
foreach ($pages as $page) {
$map[$page['uuid']] = $page;
}
foreach ($this->ids as $id) {
if (isset($map[$id])) {
$result[] = $map[$id];
}
}
}
return $result;
}