$category->getKey(), CategoryInterface::IS_ESSENTIAL => $category->isEssential(), CategoryInterface::IS_PRE_CHECKED => $category->isPreChecked(), CategoryInterface::NAME => $category->getName(), CategoryInterface::DESCRIPTION => $category->getDescription(), CategoryInterface::SORT_ORDER => $category->getSortOrder(), ]; } }