1 | <?php |
||
20 | class MediaEntity extends EntityProviderBase implements ContainerFactoryPluginInterface { |
||
21 | |||
22 | /** |
||
23 | * Entity type manager service. |
||
24 | * |
||
25 | * @var \Drupal\Core\Entity\EntityTypeManagerInterface |
||
26 | */ |
||
27 | protected $entityTypeManager; |
||
28 | |||
29 | /** |
||
30 | * Constructs media entity integration plugin. |
||
31 | * |
||
32 | * @param array $configuration |
||
33 | * A configuration array containing information about the plugin instance. |
||
34 | * @param string $plugin_id |
||
35 | * The plugin_id for the plugin instance. |
||
36 | * @param mixed $plugin_definition |
||
37 | * The plugin implementation definition. |
||
38 | * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager |
||
39 | * Entity type manager service. |
||
40 | */ |
||
41 | public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager) { |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function uri(EntityInterface $entity) { |
||
79 | |||
80 | } |
||
81 |