Skip to main content

New answers tagged

0 votes

How to get the page title from the alias?

You can try this for nodes: $path = \Drupal::service('path_alias.manager')->getPathByAlias('/your/path/alias'); $pathArray = explode("/", $path); $node = \Drupal\node\Entity\Node::load(...
Prestosaurus's user avatar
  • 2,087

Top 50 recent answers are included