LanguageNegotiationMethodBase.php in Drupal 10
File
core/modules/language/src/LanguageNegotiationMethodBase.php
View source
<?php
namespace Drupal\language;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Session\AccountInterface;
abstract class LanguageNegotiationMethodBase implements LanguageNegotiationMethodInterface {
protected $languageManager;
protected $config;
protected $currentUser;
public function setLanguageManager(ConfigurableLanguageManagerInterface $language_manager) {
$this->languageManager = $language_manager;
}
public function setConfig(ConfigFactoryInterface $config) {
$this->config = $config;
}
public function setCurrentUser(AccountInterface $current_user) {
$this->currentUser = $current_user;
}
public function persist(LanguageInterface $language) {
}
}