function StaticMenuLinkOverrides::getCacheTags

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php \Drupal\Core\Menu\StaticMenuLinkOverrides::getCacheTags()
  2. 10 core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php \Drupal\Core\Menu\StaticMenuLinkOverrides::getCacheTags()
  3. 9 core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php \Drupal\Core\Menu\StaticMenuLinkOverrides::getCacheTags()
  4. main core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php \Drupal\Core\Menu\StaticMenuLinkOverrides::getCacheTags()

The unique cache tag associated with this menu link override.

Return value

string[] An array of cache tags.

Overrides StaticMenuLinkOverridesInterface::getCacheTags

File

core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 158

Class

StaticMenuLinkOverrides
Defines an implementation of the menu link override using a config file.

Namespace

Drupal\Core\Menu

Code

public function getCacheTags() {
  return $this->getConfig()
    ->getCacheTags();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.