Issue #3377318 by Spokje, longwave, znerol: Remove cruft from LanguageNegotiationMethodManager

merge-requests/4602/head
Dave Long 2023-08-16 21:47:41 +01:00
parent ef8f7aa87d
commit dc249e5f70
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
1 changed files with 1 additions and 7 deletions

View File

@ -11,11 +11,6 @@ use Drupal\Core\Plugin\DefaultPluginManager;
*/
class LanguageNegotiationMethodManager extends DefaultPluginManager {
/**
* The cache key prefix.
*/
protected string $cacheKeyPrefix;
/**
* Constructs a new LanguageNegotiationMethodManager object.
*
@ -30,8 +25,7 @@ class LanguageNegotiationMethodManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/LanguageNegotiation', $namespaces, $module_handler, 'Drupal\language\LanguageNegotiationMethodInterface', 'Drupal\language\Annotation\LanguageNegotiation');
$this->cacheBackend = $cache_backend;
$this->cacheKeyPrefix = 'language_negotiation_plugins';
$this->cacheKey = 'language_negotiation_plugins';
$this->setCacheBackend($cache_backend, 'language_negotiation_plugins');
$this->alterInfo('language_negotiation_info');
}