public function QueryPluginBase::setFieldTimezoneOffset in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::setFieldTimezoneOffset()
Applies a timezone offset to the given field.
Parameters
string &$field: The date field, in string format.
int $offset: The timezone offset to apply to the field.
2 methods override QueryPluginBase::setFieldTimezoneOffset()
- QueryTest::setFieldTimezoneOffset in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ query/ QueryTest.php - Applies a timezone offset to the given field.
- Sql::setFieldTimezoneOffset in core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php - Applies a timezone offset to the given field.
File
- core/
modules/ views/ src/ Plugin/ views/ query/ QueryPluginBase.php, line 363
Class
- QueryPluginBase
- Base plugin class for Views queries.
Namespace
Drupal\views\Plugin\views\queryCode
public function setFieldTimezoneOffset(&$field, $offset) {
// No-op. Timezone offsets are implementation-specific and should implement
// this method as needed.
}