Update to Drupal 8.0.0-rc3. For more information, see https://www.drupal.org/node/2608078
This commit is contained in:
parent
6419a031d7
commit
4afb23bbd3
762 changed files with 20080 additions and 6368 deletions
|
@ -8,6 +8,7 @@
|
|||
namespace Drupal\help\Plugin\Block;
|
||||
|
||||
use Drupal\Core\Block\BlockBase;
|
||||
use Drupal\Core\Cache\Cache;
|
||||
use Drupal\Core\Extension\ModuleHandlerInterface;
|
||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
|
@ -120,7 +121,7 @@ class HelpBlock extends BlockBase implements ContainerFactoryPluginInterface {
|
|||
public function getCacheContexts() {
|
||||
// The "Help" block must be cached per URL: help is defined for a
|
||||
// given path, and does not come with any access restrictions.
|
||||
return array('url');
|
||||
return Cache::mergeContexts(parent::getCacheContexts(), ['url']);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue