Alter Views title programmatically on Drupal 8 | Drupal 8

Alter Views title programmatically on Drupal 8

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');
 }
}

Comments

Bobbie A Sitton (not verified)

Tue, 11/27/2018 - 05:36

Drupal is the most popular platform for blogging, creating websites for small to large business. I like to use Drupal platform for my own business. There are many paper writers who are providing the high quality services for the clients of this service. So I commend who are interested to use Drupal platform for their business. Thanks for sharing, I just like the valuable info you provide for your articles. I’ll bookmark your weblog and take a look at once more right here regularly. Buy essays provides you opportunity to spend more free time with friend

Add new comment