public function ConfigPagesBlock::getCacheTags in Config Pages 8.3
Same name and namespace in other branches
- 8 src/Plugin/Block/ConfigPagesBlock.php \Drupal\config_pages\Plugin\Block\ConfigPagesBlock::getCacheTags()
- 8.2 src/Plugin/Block/ConfigPagesBlock.php \Drupal\config_pages\Plugin\Block\ConfigPagesBlock::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 ContextAwarePluginBase::getCacheTags
File
- src/
Plugin/ Block/ ConfigPagesBlock.php, line 60
Class
- ConfigPagesBlock
- Provides a generic ConfigPages block.
Namespace
Drupal\config_pages\Plugin\BlockCode
public function getCacheTags() {
$config = $this
->getConfiguration();
if (!empty($config['config_page_type'])) {
$config_page = ConfigPages::config($config['config_page_type']);
return is_object($config_page) ? $config_page
->getCacheTags() : [];
}
return [];
}