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

Breadcrumb

  1. Drupal Core 11.1.x

CastSqlInterface.php

Namespace

Drupal\views\Plugin\views\query

File

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.

API Navigation

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