6 events
when toggle format what by license comment
Jun 22, 2016 at 7:47 comment added tanbog ah excellent, I got round the problem by setting cache to zero: '#cache' => array('max-age' => 0) but that looks like a better solution
Jun 22, 2016 at 7:18 comment added 4uk4 Yes, you also have to set the cache context '#cache' => ['contexts' => ['route']]
Jun 22, 2016 at 6:48 vote accept tanbog
Jun 22, 2016 at 6:42 comment added tanbog NVM I didn't realise you can make that call inside the build function itself thank you so much!
Jun 22, 2016 at 6:37 comment added tanbog Excuse my ignorance, but if I call that in say hook_preprocess_block() I can get the variable but then how to I pass it to my build() function?
Jun 22, 2016 at 6:25 history answered 4uk4 CC BY-SA 3.0