public function Time::__get in Drupal 9
Returns replacements for deprecated properties.
Parameters
string $name: The property name.
Return value
mixed The value.
File
- core/
modules/ views/ src/ Plugin/ views/ cache/ Time.php, line 66
Class
- Time
- Simple caching of query results for Views displays.
Namespace
Drupal\views\Plugin\views\cacheCode
public function __get($name) {
if ($name === 'request') {
@trigger_error('The request property of ' . __CLASS__ . ' is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. See https://www.drupal.org/node/3154016', E_USER_DEPRECATED);
return $this->view
->getRequest();
}
}