protected function _createFilterSlug(array $filterData)
    {
        /** @var Filter $existingFilter */
        $existingFilter = $this->Filters->find('slugForFilterData', [
            'request' => $this->request,
            'filterData' => $filterData
        ])->first();

        if ($existingFilter) {
            return $existingFilter->slug;
        }

        return $this->Filters->createFilterForFilterData($this->request, $filterData);
    }
protected function _createFilterSlug(array $filterData)
    {
        /** @var Filter $existingFilter */
        $existingFilter = $this->Filters->find('slugForFilterData', [
            'request' => $this->request,
            'filterData' => $filterData
        ])->first();

        if ($existingFilter) {
            return $existingFilter->slug;
        }

        return $this->Filters->createFilterForFilterData($this->request, $filterData);
    }
protected function _createFilterSlug ( array $ filterData ) { /** @var Filter $existingFilter */ $ existingFilter = $ this -> Filters -> find ( 'slugForFilterData' , [ 'request' => $ this -> request , 'filterData' => $ filterData ] ) -> first ( ) ; if ( $ existingFilter ) { return $ existingFilter -> slug ; } return $ this -> Filters -> createFilterForFilterData ( $ this -> request , $ filterData ) ; }
Create a filter slug for the given filter data.

@param array $filterData
@return string The slug.
Create a filter slug for the given filter data .