original_string: protected function addSearchOptions(FieldList $fields)
      {
          $fields->findOrMakeTab('Root.SearchOptions');
  
          $fields->addFieldToTab(
              'Root.SearchOptions',
              TextField::create(
                  'EmptySearch',
                  _t(
                      'CWP.SITECONFIG.EmptySearch',
                      'Text to display when there is no search query'
                  )
              )
          );
          $fields->addFieldToTab(
              'Root.SearchOptions',
              TextField::create(
                  'NoSearchResults',
                  _t(
                      'CWP.SITECONFIG.NoResult',
                      'Text to display when there are no results'
                  )
              )
          );
  
          return $this;
      }
code: protected function addSearchOptions(FieldList $fields)
      {
          $fields->findOrMakeTab('Root.SearchOptions');
  
          $fields->addFieldToTab(
              'Root.SearchOptions',
              TextField::create(
                  'EmptySearch',
                  _t(
                      'CWP.SITECONFIG.EmptySearch',
                      'Text to display when there is no search query'
                  )
              )
          );
          $fields->addFieldToTab(
              'Root.SearchOptions',
              TextField::create(
                  'NoSearchResults',
                  _t(
                      'CWP.SITECONFIG.NoResult',
                      'Text to display when there are no results'
                  )
              )
          );
  
          return $this;
      }
code_tokens: protected function addSearchOptions ( FieldList $ fields ) { $ fields -> findOrMakeTab ( 'Root.SearchOptions' ) ; $ fields -> addFieldToTab ( 'Root.SearchOptions' , TextField :: create ( 'EmptySearch' , _t ( 'CWP.SITECONFIG.EmptySearch' , 'Text to display when there is no search query' ) ) ) ; $ fields -> addFieldToTab ( 'Root.SearchOptions' , TextField :: create ( 'NoSearchResults' , _t ( 'CWP.SITECONFIG.NoResult' , 'Text to display when there are no results' ) ) ) ; return $ this ; }
docstring: Add user configurable search field labels
  
  @param  FieldList $fields
  @return $this
docstring_tokens: Add user configurable search field labels