By editor, 1 November, 2018 Question How to set title of a views page programmatically ? function MYMODULE_views_pre_render(ViewExecutable $view) { if ($view->id() == 'ABC') { $view->setTitle('MY CUSTOM TITLE'); } } Tags Drupal 8 Code Views Hook Alter a view. Edit view result programmatically Custom Views Data handler for a custom Entity on drupal 8 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