DrupalUrl.php in URL Embed 8
File
src/Plugin/CKEditorPlugin/DrupalUrl.php
View source
<?php
namespace Drupal\url_embed\Plugin\CKEditorPlugin;
use Drupal\editor\Entity\Editor;
use Drupal\embed\EmbedCKEditorPluginBase;
class DrupalUrl extends EmbedCKEditorPluginBase {
public function getFile() {
return drupal_get_path('module', 'url_embed') . '/js/plugins/drupalurl/plugin.js';
}
public function getConfig(Editor $editor) {
return array(
'DrupalUrl_dialogTitleAdd' => t('Insert Url'),
'DrupalUrl_dialogTitleEdit' => t('Edit Url'),
'DrupalUrl_buttons' => $this
->getButtons(),
);
}
}