function CastSqlInterface::getFieldAsInt

Same name in other branches
  1. 10 core/modules/views/src/Plugin/views/query/CastSqlInterface.php \Drupal\views\Plugin\views\query\CastSqlInterface::getFieldAsInt()

Returns a database expression to cast the field to int.

Parameters

$field string: The database field to cast.

Return value

string

2 methods override CastSqlInterface::getFieldAsInt()
CastSql::getFieldAsInt in core/modules/views/src/Plugin/views/query/CastSql.php
Returns a database expression to cast the field to int.
MysqlCastSql::getFieldAsInt in core/modules/mysql/src/Plugin/views/query/MysqlCastSql.php
Returns a database expression to cast the field to int.

File

core/modules/views/src/Plugin/views/query/CastSqlInterface.php, line 18

Class

CastSqlInterface
Defines an interface for defining cast expressions in SQL.

Namespace

Drupal\views\Plugin\views\query

Code

public function getFieldAsInt(string $field) : string;

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