Adds a cache decorator to the MockBlockManager's discovery.
Overrides MockBlockManager::__construct
Drupal\plugin_test\Plugin\MockBlockManager::__construct().
public function __construct() {
parent::__construct();
// The CacheDecorator allows us to cache these plugin definitions for
// quicker retrieval. In this case we are generating a cache key by
// language.
$this->discovery = new CacheDecorator($this->discovery, 'mock_block:' . language(Language::TYPE_INTERFACE)->langcode, 'cache', 1542646800, array(
'plugin_test',
));
}