Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CastSqlInterface.php

function 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;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal