1 | <?php |
||
27 | class RenderedEntity extends PluginBase implements FieldWidgetDisplayInterface, ContainerFactoryPluginInterface { |
||
28 | |||
29 | /** |
||
30 | * Entity manager service. |
||
31 | * |
||
32 | * @var \Drupal\Core\Entity\EntityManagerInterface |
||
33 | */ |
||
34 | protected $entityManager; |
||
35 | |||
36 | /** |
||
37 | * Constructs widget plugin. |
||
38 | * |
||
39 | * @param array $configuration |
||
40 | * A configuration array containing information about the plugin instance. |
||
41 | * @param string $plugin_id |
||
42 | * The plugin_id for the plugin instance. |
||
43 | * @param mixed $plugin_definition |
||
44 | * The plugin implementation definition. |
||
45 | * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager |
||
46 | * Entity manager service. |
||
47 | */ |
||
48 | public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager) { |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function view(EntityInterface $entity) { |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function settingsForm(array $form, FormStateInterface $form_state) { |
||
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | public function isApplicable(EntityTypeInterface $entity_type) { |
||
98 | |||
99 | } |
||
100 |