CastSqlInterface.php
Same filename in other branches
Namespace
Drupal\views\Plugin\views\queryFile
-
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.