public function getValuelistBySlug($slug)
    {
        $valuelists = $this->repository->valuelists;
        foreach ($valuelists as $valuelist) {
            if ($valuelist->slug == $slug) {
                return $valuelist;
            }
        }

        return null;
    }
public function getValuelistBySlug($slug)
    {
        $valuelists = $this->repository->valuelists;
        foreach ($valuelists as $valuelist) {
            if ($valuelist->slug == $slug) {
                return $valuelist;
            }
        }

        return null;
    }
public function getValuelistBySlug ( $ slug ) { $ valuelists = $ this -> repository -> valuelists ; foreach ( $ valuelists as $ valuelist ) { if ( $ valuelist -> slug == $ slug ) { return $ valuelist ; } } return null ; }
Get a valuelist by its slug

@param $slug

@return \stdClass
Get a valuelist by its slug