Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LanguageBlock.php

function LanguageBlock::getCacheMaxAge

@todo Make cacheable in https://www.drupal.org/node/2232375.

Overrides ContextAwarePluginTrait::getCacheMaxAge

File

core/modules/language/src/Plugin/Block/LanguageBlock.php, line 124

Class

LanguageBlock
Provides a 'Language switcher' block.

Namespace

Drupal\language\Plugin\Block

Code

public function getCacheMaxAge() {
    return 0;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal