function Time::__get

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\cache

Code

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();
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.