Video.php in CKEditor Video 8
File
src/Plugin/CKEditorPlugin/Video.php
View source
<?php
namespace Drupal\ckeditor_video\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
class Video extends CKEditorPluginBase {
public function getFile() {
return drupal_get_path('module', 'ckeditor_video') . '/js/plugins/video/plugin.js';
}
public function getConfig(Editor $editor) {
return [];
}
public function getButtons() {
return [
'Video' => [
'label' => $this
->t('Video'),
'image' => drupal_get_path('module', 'ckeditor_video') . '/js/plugins/video/icons/video.png',
],
];
}
public function getDependencies(Editor $editor) {
return [
'fakeobjects',
];
}
}
Classes
Name |
Description |
Video |
Defines the "video" plugin. |