Open Data Catalog v2.0.0
RequestTrait.php
Go to the documentation of this file.
1 <?php
2 
4 
8 trait RequestTrait {
9 
18  protected function getCurrentRequest() {
19  return \Drupal::request();
20  }
21 
30  protected function getCurrentRequestUri() {
31  return $this->getCurrentRequest()
32  ->getRequestUri();
33  }
34 
43  protected function getCurrentRequestContent() {
44  return $this->getCurrentRequest()
45  ->getContent();
46  }
47 
48 }
Drupal\dkan_common\Util
Definition: ParentCallTrait.php:3