Unable to update header value using hook_views_pre_render? I have create the header value using Global: Unfiltered text (Global: Unfiltered text) . 

BY us hook_views_pre_render i want to update the header value . How can I update the header value .

How to update header text in hook_views_pre_render provide the solution for the header value to update but its not working for me 

    function mytheme_views_pre_render(ViewExecutable $view) {

      if ($view-&gt;id() == 'works') {
//    enter code here
             $my_value='No result found';
             $view-&gt;display['page']-&gt;handler-&gt;handlers['header']
             ['area_1']-&gt;options['content'] = $my_values;

        }   

      }
    }
$view-&gt;display['page']-&gt;handler-&gt;handlers['header']
             ['area_1']-&gt;options['content'] = $my_values;


please change the value of the area_1 if anyone want change the header value programmatically . 

Just hover the Global: Unfiltered text (Global: Unfiltered text) header value and you will get the area_1 value .