1 | <?php |
||
19 | class LanguageId extends EnumPluginBase implements ContainerFactoryPluginInterface { |
||
|
|||
20 | |||
21 | /** |
||
22 | * The language manager. |
||
23 | * |
||
24 | * @var \Drupal\Core\Language\LanguageManagerInterface |
||
25 | */ |
||
26 | protected $languageManager; |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public static function create(ContainerInterface $container, array $configuration, $pluginId, $pluginDefinition) { |
||
39 | |||
40 | /** |
||
41 | * LanguageId constructor. |
||
42 | * |
||
43 | * @param array $configuration |
||
44 | * The plugin configuration array. |
||
45 | * @param string $pluginId |
||
46 | * The plugin id. |
||
47 | * @param array $pluginDefinition |
||
48 | * The plugin definition array. |
||
49 | * @param \Drupal\Core\Language\LanguageManagerInterface $languageManager |
||
50 | * The language manager service. |
||
51 | */ |
||
52 | public function __construct(array $configuration, $pluginId, $pluginDefinition, LanguageManagerInterface $languageManager) { |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function buildEnumValues($definition) { |
||
73 | } |
||
74 |