You are here

interface PlaceholderInterface in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/Query/PlaceholderInterface.php \Drupal\Core\Database\Query\PlaceholderInterface
  2. 10 core/lib/Drupal/Core/Database/Query/PlaceholderInterface.php \Drupal\Core\Database\Query\PlaceholderInterface

Interface for a query that accepts placeholders.

Hierarchy

Expanded class hierarchy of PlaceholderInterface

All classes that implement PlaceholderInterface

2 files declare their use of PlaceholderInterface
ConditionTest.php in core/tests/Drupal/Tests/Core/Database/ConditionTest.php
Schema.php in core/lib/Drupal/Core/Database/Schema.php

File

core/lib/Drupal/Core/Database/Query/PlaceholderInterface.php, line 8

Namespace

Drupal\Core\Database\Query
View source
interface PlaceholderInterface {

  /**
   * Returns a unique identifier for this object.
   */
  public function uniqueIdentifier();

  /**
   * Returns the next placeholder ID for the query.
   *
   * @return
   *   The next available placeholder ID as an integer.
   */
  public function nextPlaceholder();

}

Members

Namesort descending Modifiers Type Description Overrides
PlaceholderInterface::nextPlaceholder public function Returns the next placeholder ID for the query. 3
PlaceholderInterface::uniqueIdentifier public function Returns a unique identifier for this object. 3