Protected $view values inside template_views_pre_render function?
To access the value of the view object you can use the method get():

$view-&gt;get('id')


Or if the object provides a special method for the id, which is the case with the view object:

$view-&gt;id()