requestStack->getCurrentRequest()->getQueryString(); return ($value !== NULL) ? $value : ''; } elseif ($this->requestStack->getCurrentRequest()->query->has($query_arg)) { $value = $this->requestStack->getCurrentRequest()->query->get($query_arg); if (is_array($value)) { return http_build_query($value); } elseif ($value !== '') { return $value; } return '?valueless?'; } return ''; } /** * {@inheritdoc} */ public function getCacheableMetadata($query_arg = NULL) { return new CacheableMetadata(); } }