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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
Prepares an array of category data
@param array $category
Prepares an array of category data