1 | <?php |
||
13 | abstract class EmbedCKEditorPluginBase extends CKEditorPluginBase implements ContainerFactoryPluginInterface { |
||
14 | |||
15 | /** |
||
16 | * The embed button query. |
||
17 | * |
||
18 | * @var \Drupal\Core\Entity\Query\QueryInterface |
||
19 | */ |
||
20 | protected $embedButtonQuery; |
||
21 | |||
22 | /** |
||
23 | * Constructs a Drupal\entity_embed\Plugin\CKEditorPlugin\DrupalEntity object. |
||
24 | * |
||
25 | * @param array $configuration |
||
26 | * A configuration array containing information about the plugin instance. |
||
27 | * @param string $plugin_id |
||
28 | * The plugin_id for the plugin instance. |
||
29 | * @param mixed $plugin_definition |
||
30 | * The plugin implementation definition. |
||
31 | * @param \Drupal\Core\Entity\Query\QueryInterface $embed_button_query |
||
32 | * The entity query object for embed button. |
||
33 | */ |
||
34 | public function __construct(array $configuration, $plugin_id, $plugin_definition, QueryInterface $embed_button_query) { |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getButtons() { |
||
69 | |||
70 | protected function getButton(EmbedButtonInterface $embed_button) { |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function getLibraries(Editor $editor) { |
||
87 | |||
88 | } |
||
89 |