function ManyToOneHelper::placeholder

Same name in other branches
  1. 9 core/modules/views/src/ManyToOneHelper.php \Drupal\views\ManyToOneHelper::placeholder()
  2. 8.9.x core/modules/views/src/ManyToOneHelper.php \Drupal\views\ManyToOneHelper::placeholder()
  3. 11.x core/modules/views/src/ManyToOneHelper.php \Drupal\views\ManyToOneHelper::placeholder()

Provides a unique placeholders for handlers.

1 call to ManyToOneHelper::placeholder()
ManyToOneHelper::addFilter in core/modules/views/src/ManyToOneHelper.php

File

core/modules/views/src/ManyToOneHelper.php, line 274

Class

ManyToOneHelper
This many to one helper object is used on both arguments and filters.

Namespace

Drupal\views

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.