interface PlaceholderInterface

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/Query/PlaceholderInterface.php \Drupal\Core\Database\Query\PlaceholderInterface
  2. 8.9.x core/lib/Drupal/Core/Database/Query/PlaceholderInterface.php \Drupal\Core\Database\Query\PlaceholderInterface
  3. 11.x 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 int
     *   The next available placeholder ID as an integer.
     */
    public function nextPlaceholder();

}

Members

Title Sort descending Modifiers Object type Summary 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

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