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

string $field: The database field to cast.

Return value

string The database expression to cast the field to int.

File

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

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.