You are here

public function Blocktabs::getCacheTags in Block Tabs 8

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 EntityBase::getCacheTags

File

src/Entity/Blocktabs.php, line 207

Class

Blocktabs
Defines a blocktabs configuration entity.

Namespace

Drupal\blocktabs\Entity

Code

public function getCacheTags() {
  $tags = parent::getCacheTags();
  foreach ($this
    ->getTabs() as $tab) {
    $tags = Cache::mergeTags($tab
      ->getCacheTags());
  }
  return $tags;
}