You are here

public function MenuLinkMock::getCacheTags in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getCacheTags()
  2. 9 core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getCacheTags()

The cache tags associated with this object.

When this object is modified, these cache tags will be invalidated.

Return value

string[] A set of cache tags.

Overrides MenuLinkBase::getCacheTags

File

core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php, line 80

Class

MenuLinkMock
Defines a mock implementation of a menu link used in tests only.

Namespace

Drupal\Tests\Core\Menu

Code

public function getCacheTags() {
  return $this->pluginDefinition['metadata']['cache_tags'];
}