By editor, 24 August, 2016 Question How to get the element bu url ? Drupal 8 Drupal 7 Get the node $node = menu_get_object(); Get Path alias $alias = drupal_get_path_alias(); Get path alias $alias = drupal_get_path_alias(); $path = drupal_lookup_path("source", $alias); Get node from path alias $alias = drupal_get_path_alias(); $path = drupal_lookup_path("source", $alias); $node = menu_get_object("node", 1, $path); Tags Drupal 8 Drupal 7 Comments You must have JavaScript enabled to use this form. Your name Subject Comment About text formats Plain text No HTML tags allowed. Lines and paragraphs break automatically. Web page addresses and email addresses turn into links automatically.
Comments