CastSqlInterface.php

Same filename in other branches
  1. 11.x core/modules/views/src/Plugin/views/query/CastSqlInterface.php

Namespace

Drupal\views\Plugin\views\query

File

core/modules/views/src/Plugin/views/query/CastSqlInterface.php

View source
<?php

namespace Drupal\views\Plugin\views\query;


/**
 * Defines an interface for defining cast expressions in SQL.
 */
interface CastSqlInterface {
    
    /**
     * Returns a database expression to cast the field to int.
     *
     * @param $field string
     *   The database field to cast.
     *
     * @return string
     */
    public function getFieldAsInt(string $field) : string;

}

Interfaces

Title Deprecated Summary
CastSqlInterface Defines an interface for defining cast expressions in SQL.

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