Skip to content

Instantly share code, notes, and snippets.

@Berdir Berdir/SyndicateBlock.php Secret
Created Dec 19, 2016

Embed
What would you like to do?
/**
* {@inheritdoc}
*/
public function build() {
return array(
'foo' => ['#markup' => \Drupal::request()->getRequestUri()],
'#cache' => ['contexts' => ['url.path', 'url.query_args']],
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.