MysqlDateSql::$replace
Same name in other branches
- 9 core/modules/views/src/Plugin/views/query/MysqlDateSql.php \Drupal\views\Plugin\views\query\MysqlDateSql::replace
- 8.9.x core/modules/views/src/Plugin/views/query/MysqlDateSql.php \Drupal\views\Plugin\views\query\MysqlDateSql::replace
- 10 core/modules/views/src/Plugin/views/query/MysqlDateSql.php \Drupal\views\Plugin\views\query\MysqlDateSql::replace
An array of PHP-to-MySQL replacement patterns.
Type: string[]
File
-
core/
modules/ views/ src/ Plugin/ views/ query/ MysqlDateSql.php, line 29
Class
- MysqlDateSql
- MySQL-specific date handling.
Namespace
Drupal\views\Plugin\views\queryCode
protected static $replace = [
'Y' => '%Y',
'y' => '%y',
'o' => '%x',
'M' => '%b',
'm' => '%m',
'n' => '%c',
'F' => '%M',
'D' => '%a',
'd' => '%d',
'l' => '%W',
'j' => '%e',
'W' => '%v',
'H' => '%H',
'h' => '%h',
'i' => '%i',
's' => '%s',
'A' => '%p',
];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.