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