Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NodeSearch.php

function NodeSearch::isSearchExecutable

Overrides SearchPluginBase::isSearchExecutable

1 call to NodeSearch::isSearchExecutable()
NodeSearch::execute in core/modules/node/src/Plugin/Search/NodeSearch.php
Executes the search.

File

core/modules/node/src/Plugin/Search/NodeSearch.php, line 220

Class

NodeSearch
Handles searching for node entities using the Search module index.

Namespace

Drupal\node\Plugin\Search

Code

public function isSearchExecutable() {
    // Node search is executable if we have keywords or an advanced parameter.
    // At least, we should parse out the parameters and see if there are any
    // keyword matches in that case, rather than just printing out the
    // "Enter keywords" message.
    return !empty($this->keywords) || isset($this->searchParameters['f']) && count($this->searchParameters['f']);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal