Skip to content

Instantly share code, notes, and snippets.

@radheymkumar
Last active March 28, 2018 10:15
Show Gist options
  • Save radheymkumar/458fa0a362294db89b3854cebf00969e to your computer and use it in GitHub Desktop.
Save radheymkumar/458fa0a362294db89b3854cebf00969e to your computer and use it in GitHub Desktop.
get path Info
LANG_TRANSLATE = https://drupal.stackexchange.com/questions/249408/how-to-create-a-list-of-untranslated-content-in-views/249411#249411
/* Get Path */
$path = \Drupal::request()->getpathInfo();
$arg = explode('/',$path);
/*Get User info */
$current_user = \Drupal::currentUser();
/* http://drupal8.support/en/ontdek */
/* Invoke View */
<?php echo views_embed_view('franchise_pages', 'block'); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment