prepareResults example

return $this->getPluginId();
  }

  /** * {@inheritdoc} */
  public function execute() {
    if ($this->isSearchExecutable()) {
      $results = $this->findResults();

      if ($results) {
        return $this->prepareResults($results);
      }
    }

    return [];
  }

  /** * Finds the search results. * * @return \Drupal\Core\Database\StatementInterface|null * Results from search query execute() method, or NULL if the search * failed. */
return $this->getPluginId();
  }

  /** * {@inheritdoc} */
  public function execute() {
    if ($this->isSearchExecutable()) {
      $results = $this->findResults();

      if ($results) {
        return $this->prepareResults($results);
      }
    }

    return [];
  }

  /** * Queries to find search results, and sets status messages. * * This method can assume that $this->isSearchExecutable() has already been * checked and returned TRUE. * * @return \Drupal\Core\Database\StatementInterface|null * Results from search query execute() method, or NULL if the search * failed. */
Home | Imprint | This part of the site doesn't use cookies.