Loading ckeditor_smiley.moduledeleted 100644 → 0 +0 −1 Original line number Diff line number Diff line <?php src/Plugin/CKEditorPlugin/SmileyCKEditorButton.php +11 −16 Original line number Diff line number Diff line <?php /** * @file * Contains \Drupal\ckeditor_smiley\Plugin\CKEditorPlugin\SmileyCKEditorButton. */ namespace Drupal\ckeditor_smiley\Plugin\CKEditorPlugin; use Drupal\ckeditor\CKEditorPluginBase; Loading Loading @@ -34,12 +29,12 @@ class SmileyCKEditorButton extends CKEditorPluginBase { public function getButtons() { // Make sure that the path to the image matches the file structure of // the CKEditor plugin you are implementing. return array( 'Smiley' => array( return [ 'Smiley' => [ 'label' => t('Smiley ckeditor button'), 'image' => 'libraries/smiley/icons/smiley.png', ), ); ], ]; } /** Loading @@ -52,29 +47,29 @@ class SmileyCKEditorButton extends CKEditorPluginBase { /** * {@inheritdoc} */ function isInternal() { public function isInternal() { return FALSE; } /** * {@inheritdoc} */ function getDependencies(Editor $editor) { return array(); public function getDependencies(Editor $editor) { return []; } /** * {@inheritdoc} */ function getLibraries(Editor $editor) { return array(); public function getLibraries(Editor $editor) { return []; } /** * {@inheritdoc} */ public function getConfig(Editor $editor) { return array(); return []; } } Loading
src/Plugin/CKEditorPlugin/SmileyCKEditorButton.php +11 −16 Original line number Diff line number Diff line <?php /** * @file * Contains \Drupal\ckeditor_smiley\Plugin\CKEditorPlugin\SmileyCKEditorButton. */ namespace Drupal\ckeditor_smiley\Plugin\CKEditorPlugin; use Drupal\ckeditor\CKEditorPluginBase; Loading Loading @@ -34,12 +29,12 @@ class SmileyCKEditorButton extends CKEditorPluginBase { public function getButtons() { // Make sure that the path to the image matches the file structure of // the CKEditor plugin you are implementing. return array( 'Smiley' => array( return [ 'Smiley' => [ 'label' => t('Smiley ckeditor button'), 'image' => 'libraries/smiley/icons/smiley.png', ), ); ], ]; } /** Loading @@ -52,29 +47,29 @@ class SmileyCKEditorButton extends CKEditorPluginBase { /** * {@inheritdoc} */ function isInternal() { public function isInternal() { return FALSE; } /** * {@inheritdoc} */ function getDependencies(Editor $editor) { return array(); public function getDependencies(Editor $editor) { return []; } /** * {@inheritdoc} */ function getLibraries(Editor $editor) { return array(); public function getLibraries(Editor $editor) { return []; } /** * {@inheritdoc} */ public function getConfig(Editor $editor) { return array(); return []; } }