private function getCategoryVariables()
{
$variables = [];
if ($this->registry->registry('current_category')) {
$category = $this->registry->registry('current_category');
$variables['category.id'] = $category->getId();
$variables['category.label'] = $category->getName();
$variables['category.path'] = $category->getPath();
}
return $variables;
}