Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get a nodes path alias

$alias = Drupal::service('path_alias.manager')->getAliasByPath('/node/'.$nid);
Source by drupal.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #nodes #path #alias
ADD COMMENT
Topic
Name
4+6 =