FALSE, ]; } /** * {@inheritdoc} */ public function build() { return ['#type' => 'status_messages']; } /** * {@inheritdoc} */ public function getCacheMaxAge() { // The messages are session-specific and hence aren't cacheable, but the // block itself *is* cacheable because it uses a #lazy_builder callback and // hence the block has a globally cacheable render array. return Cache::PERMANENT; } }