Mercurial > hg > isophonics-drupal-site
comparison core/modules/language/src/Plugin/Block/LanguageBlock.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
55 parent::__construct($configuration, $plugin_id, $plugin_definition); | 55 parent::__construct($configuration, $plugin_id, $plugin_definition); |
56 $this->languageManager = $language_manager; | 56 $this->languageManager = $language_manager; |
57 $this->pathMatcher = $path_matcher; | 57 $this->pathMatcher = $path_matcher; |
58 } | 58 } |
59 | 59 |
60 | |
61 /** | 60 /** |
62 * {@inheritdoc} | 61 * {@inheritdoc} |
63 */ | 62 */ |
64 public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { | 63 public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { |
65 return new static( | 64 return new static( |
68 $plugin_definition, | 67 $plugin_definition, |
69 $container->get('language_manager'), | 68 $container->get('language_manager'), |
70 $container->get('path.matcher') | 69 $container->get('path.matcher') |
71 ); | 70 ); |
72 } | 71 } |
73 | |
74 | 72 |
75 /** | 73 /** |
76 * {@inheritdoc} | 74 * {@inheritdoc} |
77 */ | 75 */ |
78 protected function blockAccess(AccountInterface $account) { | 76 protected function blockAccess(AccountInterface $account) { |