1 | <?php |
||
24 | class DrupalEntity extends EmbedCKEditorPluginBase { |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { |
||
30 | $configuration['inline'] = $container->get('config.factory') |
||
31 | ->get('entity_embed.settings') |
||
32 | ->get('inline'); |
||
33 | |||
34 | return parent::create($container, $configuration, $plugin_id, $plugin_definition); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | protected function getButton(EmbedButtonInterface $embed_button) { |
||
41 | $button = parent::getButton($embed_button); |
||
42 | $button['entity_type'] = $embed_button->getTypeSetting('entity_type'); |
||
43 | return $button; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getFile() { |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getConfig(Editor $editor) { |
||
64 | |||
65 | } |
||
66 |