abstract public function Connection::mapConditionOperator in Drupal 9
Same name in this branch
- 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::mapConditionOperator()
- 9 core/tests/fixtures/database_drivers/custom/fake/Connection.php \Drupal\Driver\Database\fake\Connection::mapConditionOperator()
- 9 core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php \Drupal\Core\Database\Driver\sqlite\Connection::mapConditionOperator()
- 9 core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php \Drupal\Core\Database\Driver\pgsql\Connection::mapConditionOperator()
- 9 core/lib/Drupal/Core/Database/Driver/mysql/Connection.php \Drupal\Core\Database\Driver\mysql\Connection::mapConditionOperator()
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::mapConditionOperator()
Gets any special processing requirements for the condition operator.
Some condition types require special processing, such as IN, because the value data they pass in is not a simple value. This is a simple overridable lookup function. Database connections should define only those operators they wish to be handled differently than the default.
Parameters
string $operator: The condition operator, such as "IN", "BETWEEN", etc. Case-sensitive.
Return value
The extra handling directives for the specified operator, or NULL.
See also
\Drupal\Core\Database\Query\Condition::compile()
5 methods override Connection::mapConditionOperator()
- Connection::mapConditionOperator in core/
tests/ fixtures/ database_drivers/ custom/ fake/ Connection.php - Gets any special processing requirements for the condition operator.
- Connection::mapConditionOperator in core/
lib/ Drupal/ Core/ Database/ Driver/ sqlite/ Connection.php - Gets any special processing requirements for the condition operator.
- Connection::mapConditionOperator in core/
lib/ Drupal/ Core/ Database/ Driver/ pgsql/ Connection.php - Gets any special processing requirements for the condition operator.
- Connection::mapConditionOperator in core/
lib/ Drupal/ Core/ Database/ Driver/ mysql/ Connection.php - Gets any special processing requirements for the condition operator.
- StubConnection::mapConditionOperator in core/
tests/ Drupal/ Tests/ Core/ Database/ Stub/ StubConnection.php - Gets any special processing requirements for the condition operator.
File
- core/
lib/ Drupal/ Core/ Database/ Connection.php, line 1851
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public abstract function mapConditionOperator($operator);