original_string: protected function getFieldNames(Criterion $criterion)
      {
          $fieldDefinitionIdentifier = $criterion->target;
          $fieldMap = $this->contentTypeHandler->getSearchableFieldMap();
          $fieldNames = [];
  
          foreach ($fieldMap as $contentTypeIdentifier => $fieldIdentifierMap) {
              if (!isset($fieldIdentifierMap[$fieldDefinitionIdentifier])) {
                  continue;
              }
  
              $fieldNames[] = $this->fieldNameGenerator->getTypedName(
                  $this->fieldNameGenerator->getName(
                      'is_empty',
                      $fieldDefinitionIdentifier,
                      $contentTypeIdentifier
                  ),
                  new BooleanField()
              );
          }
  
          return $fieldNames;
      }
code: protected function getFieldNames(Criterion $criterion)
      {
          $fieldDefinitionIdentifier = $criterion->target;
          $fieldMap = $this->contentTypeHandler->getSearchableFieldMap();
          $fieldNames = [];
  
          foreach ($fieldMap as $contentTypeIdentifier => $fieldIdentifierMap) {
              if (!isset($fieldIdentifierMap[$fieldDefinitionIdentifier])) {
                  continue;
              }
  
              $fieldNames[] = $this->fieldNameGenerator->getTypedName(
                  $this->fieldNameGenerator->getName(
                      'is_empty',
                      $fieldDefinitionIdentifier,
                      $contentTypeIdentifier
                  ),
                  new BooleanField()
              );
          }
  
          return $fieldNames;
      }
code_tokens: protected function getFieldNames ( Criterion $ criterion ) { $ fieldDefinitionIdentifier = $ criterion -> target ; $ fieldMap = $ this -> contentTypeHandler -> getSearchableFieldMap ( ) ; $ fieldNames = [ ] ; foreach ( $ fieldMap as $ contentTypeIdentifier => $ fieldIdentifierMap ) { if ( ! isset ( $ fieldIdentifierMap [ $ fieldDefinitionIdentifier ] ) ) { continue ; } $ fieldNames [ ] = $ this -> fieldNameGenerator -> getTypedName ( $ this -> fieldNameGenerator -> getName ( 'is_empty' , $ fieldDefinitionIdentifier , $ contentTypeIdentifier ) , new BooleanField ( ) ) ; } return $ fieldNames ; }
docstring: Return all field names for the given criterion.
  
  @param \eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion
  
  @return string[]
docstring_tokens: Return all field names for the given criterion .