concrete/src/Attribute/Category/CategoryService.php
public function getByHandle($akCategoryHandle)
    {
        $r = $this->entityManager->getRepository(Category::class);

        return $r->findOneBy(['akCategoryHandle' => $akCategoryHandle]);
    }
public function getByHandle($akCategoryHandle)
    {
        $r = $this->entityManager->getRepository(Category::class);

        return $r->findOneBy(['akCategoryHandle' => $akCategoryHandle]);
    }
public function getByHandle ( $ akCategoryHandle ) { $ r = $ this -> entityManager -> getRepository ( Category :: class ) ; return $ r -> findOneBy ( [ 'akCategoryHandle' => $ akCategoryHandle ] ) ; }
Get a attribute category given its handle.

@param string $akCategoryHandle

@return Category|null
Get a attribute category given its handle .