You are here

protected function HandlerBase::placeholder in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::placeholder()

Provides a unique placeholders for handlers.

Return value

string A placeholder which contains the table and the fieldname.

22 calls to HandlerBase::placeholder()
Combine::opContains in core/modules/views/src/Plugin/views/filter/Combine.php
Combine::opContainsWord in core/modules/views/src/Plugin/views/filter/Combine.php
Filters by one or more words.
Combine::opEndsWith in core/modules/views/src/Plugin/views/filter/Combine.php
Combine::opEqual in core/modules/views/src/Plugin/views/filter/Combine.php
By default things like opEqual uses add_where, that doesn't support complex expressions, so override opEqual (and all operators below).
Combine::opNotEndsWith in core/modules/views/src/Plugin/views/filter/Combine.php

... See full list

File

core/modules/views/src/Plugin/views/HandlerBase.php, line 499

Class

HandlerBase
Base class for Views handler plugins.

Namespace

Drupal\views\Plugin\views

Code

protected function placeholder() {
  return $this->query
    ->placeholder($this->table . '_' . $this->field);
}