public function getItems()
{
$result = [];
$categoryCollection = $this->getCategoryCollection();
if ($categoryCollection) {
foreach ($categoryCollection as $category) {
$result[] = $this->itemFactory->create(['category' => $category, 'type' => $this->getType()]);
}
}
return $result;
}