Submitted by editor on Thu, 11/01/2018 - 14:48 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 Add new comment 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. Leave this field blank
Add new comment