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

Breadcrumb

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

interface CastSqlInterface

Defines an interface for defining cast expressions in SQL.

Hierarchy

  • interface \Drupal\views\Plugin\views\query\CastSqlInterface

Expanded class hierarchy of CastSqlInterface

All classes that implement CastSqlInterface

1 file declares its use of CastSqlInterface
MysqlCastSql.php in core/modules/mysql/src/Plugin/views/query/MysqlCastSql.php

File

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

Namespace

Drupal\views\Plugin\views\query
View source
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;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
CastSqlInterface::getFieldAsInt public function Returns a database expression to cast the field to int. 2

API Navigation

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