New answers tagged

-1 votes

Get page title form url

Try this solution for get title from view page url. in your custom module ==> .module file use Drupal\views\ViewExecutable; function display_form_mode_views_post_render(ViewExecutable $view) { ...
hetal chavda's user avatar
0 votes

Register an object with the Service Container and give it a setRequest() (get base url)

Here's an example (extracted from real code I just wrote in for Drupal 10.1) of getting the current request from the request_stack service in a plugin. Another service would just be wired into your ...
Adam Franco's user avatar
0 votes

Mod rewrite enabled and working, urls contain index.php/

I have had the same or similar problem with Drupal 10.1.x when logged in when running PHP (8.1.x) as a FPM application on Apache 2.2. i.e. index.php being prepended to url path despite mod_rewrite ...
Daniel's user avatar
  • 180

Top 50 recent answers are included