1 | <?php |
||
15 | class DisplayModeIdDeriver extends DeriverBase implements ContainerDeriverInterface { |
||
16 | use StringTranslationTrait; |
||
17 | |||
18 | /** |
||
19 | * Entity type manager. |
||
20 | * |
||
21 | * @var \Drupal\Core\Entity\EntityTypeManagerInterface |
||
22 | */ |
||
23 | protected $entityTypeManager; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | public static function create(ContainerInterface $container, $basePluginId) { |
||
31 | |||
32 | /** |
||
33 | * DisplayModeIdDeriver constructor. |
||
34 | * |
||
35 | * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager |
||
36 | * The entity type manager service. |
||
37 | */ |
||
38 | public function __construct(EntityTypeManagerInterface $entityTypeManager) { |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function getDerivativeDefinitions($basePluginDefinition) { |
||
58 | |||
59 | /** |
||
60 | * Retrieves a list of entity view modes grouped by their target type. |
||
61 | * |
||
62 | * @return array |
||
63 | * The list of entity view modes grouped by the target entity type. |
||
64 | */ |
||
65 | protected function getDisplayModes() { |
||
83 | |||
84 | } |
||
85 |