PlaceholderInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Database/Query/PlaceholderInterface.php
  2. 8.9.x core/lib/Drupal/Core/Database/Query/PlaceholderInterface.php
  3. 10 core/lib/Drupal/Core/Database/Query/PlaceholderInterface.php

Namespace

Drupal\Core\Database\Query

File

core/lib/Drupal/Core/Database/Query/PlaceholderInterface.php

View source
<?php

namespace Drupal\Core\Database\Query;


/**
 * Interface for a query that accepts placeholders.
 */
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();

}

Interfaces

Title Deprecated Summary
PlaceholderInterface Interface for a query that accepts placeholders.

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