DomainBlockBase.php in Domain Access 8
Namespace
Drupal\domain\Plugin\BlockFile
domain/src/Plugin/Block/DomainBlockBase.phpView source
<?php
namespace Drupal\domain\Plugin\Block;
use Drupal\Core\Block\BlockBase;
/**
* Creates a common block pattern for caching.
*/
abstract class DomainBlockBase extends BlockBase {
/**
* {@inheritdoc}
*/
public function getCacheContexts() {
// By default, all domain blocks are per-url.
return [
'url',
];
}
}
Classes
Name | Description |
---|---|
DomainBlockBase | Creates a common block pattern for caching. |