1 | <?php |
||
16 | class ViewModeDeriver extends DeriverBase implements ContainerDeriverInterface { |
||
17 | |||
18 | /** |
||
19 | * The entity display repository. |
||
20 | * |
||
21 | * @var \Drupal\Core\Entity\EntityDisplayRepositoryInterface |
||
22 | */ |
||
23 | protected $entityDisplayRepository; |
||
24 | |||
25 | /** |
||
26 | * The config factory service. |
||
27 | * |
||
28 | * @var \Drupal\Core\Config\ConfigFactoryInterface |
||
29 | */ |
||
30 | protected $configFactory; |
||
31 | |||
32 | /** |
||
33 | * Constructs a ViewModeDeriver object. |
||
34 | * |
||
35 | * @param \Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository |
||
36 | * The entity display repository. |
||
37 | * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory |
||
38 | * A config factory for retrieving required config objects. |
||
39 | */ |
||
40 | public function __construct(EntityDisplayRepositoryInterface $entity_display_repository, ConfigFactoryInterface $config_factory) { |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public static function create(ContainerInterface $container, $base_plugin_id) { |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getDerivativeDefinitions($base_plugin_definition) { |
||
71 | |||
72 | } |
||
73 |