You are here

public function DropDownLoginBlock::getCacheTags in Drop Down Login 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 ContextAwarePluginBase::getCacheTags

File

src/Plugin/Block/DropdownLoginBlock.php, line 169

Class

DropDownLoginBlock
Provides a 'Drop Down Login' block.

Namespace

Drupal\drop_down_login\Plugin\Block

Code

public function getCacheTags() {
  return Cache::mergeTags(parent::getCacheTags(), array(
    'user:' . $this->account
      ->id(),
  ));
}