protected function prepareCategory(array &$category)
    {
        $this->setItemAlias($category, 'category', $this->alias);
        $this->setItemImages($category, 'category', $this->image);
        $this->setItemTranslation($category, 'category', $this->translation_entity);

        if (!empty($category['images'])) {
            foreach ($category['images'] as &$file) {
                $this->setItemTranslation($file, 'file', $this->translation_entity);
            }
        }
    }