You are here

public function MenuLinkEntity::getCacheTags in Admin Toolbar 8.2

Same name and namespace in other branches
  1. 3.x admin_toolbar_tools/src/Plugin/Menu/MenuLinkEntity.php \Drupal\admin_toolbar_tools\Plugin\Menu\MenuLinkEntity::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

admin_toolbar_tools/src/Plugin/Menu/MenuLinkEntity.php, line 90

Class

MenuLinkEntity
Provides a menu link plugins for configuration entities.

Namespace

Drupal\admin_toolbar_tools\Plugin\Menu

Code

public function getCacheTags() {
  if ($this->entity) {
    return $this->entity
      ->getCacheTags();
  }
  return parent::getCacheTags();
}