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

Breadcrumb

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

function SelectInterface::escapeField

Escapes a field name string.

Force all field names to be strictly alphanumeric-plus-underscore. For some database drivers, it may also wrap the field name in database-specific escape characters.

Parameters

string $string: An unsanitized field name.

Return value

string The sanitized field name string.

2 methods override SelectInterface::escapeField()
Select::escapeField in core/lib/Drupal/Core/Database/Query/Select.php
Escapes a field name string.
SelectExtender::escapeField in core/lib/Drupal/Core/Database/Query/SelectExtender.php
Escapes a field name string.

File

core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 152

Class

SelectInterface
Interface definition for a Select Query object.

Namespace

Drupal\Core\Database\Query

Code

public function escapeField($string);

API Navigation

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