original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Create a filter slug for the given filter data.
  
  @param array $filterData
  @return string The slug.
docstring_tokens: Create a filter slug for the given filter data .