You are here

protected property NodeSearch::$advanced in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Plugin/Search/NodeSearch.php \Drupal\node\Plugin\Search\NodeSearch::advanced

The list of options and info for advanced search filters.

Each entry in the array has the option as the key and for its value, an array that determines how the value is matched in the database query. The possible keys in that array are:

  • column: (required) Name of the database column to match against.
  • join: (optional) Information on a table to join. By default the data is matched against the {node_field_data} table.
  • operator: (optional) OR or AND, defaults to OR.

Type: array

File

core/modules/node/src/Plugin/Search/NodeSearch.php, line 110
Contains \Drupal\node\Plugin\Search\NodeSearch.

Class

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

Namespace

Drupal\node\Plugin\Search

Code

protected $advanced = array(
  'type' => array(
    'column' => 'n.type',
  ),
  'language' => array(
    'column' => 'i.langcode',
  ),
  'author' => array(
    'column' => 'n.uid',
  ),
  'term' => array(
    'column' => 'ti.tid',
    'join' => array(
      'table' => 'taxonomy_index',
      'alias' => 'ti',
      'condition' => 'n.nid = ti.nid',
    ),
  ),
);