src/Plugin/CKEditor4To5Upgrade/Linkit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Plugin/CKEditor4To5Upgrade/Linkit.php b/src/Plugin/CKEditor4To5Upgrade/Linkit.php index 883c99a..a56d17d 100644 --- a/src/Plugin/CKEditor4To5Upgrade/Linkit.php +++ b/src/Plugin/CKEditor4To5Upgrade/Linkit.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Drupal\linkit\Plugin\CKEditor4To5Upgrade; +use Drupal\ckeditor5\HTMLRestrictions; use Drupal\ckeditor5\Plugin\CKEditor4To5UpgradePluginInterface; use Drupal\Core\Plugin\PluginBase; use Drupal\filter\FilterFormatInterface; @@ -23,7 +24,7 @@ class Linkit extends PluginBase implements CKEditor4To5UpgradePluginInterface { /** * {@inheritdoc} */ - public function mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem(string $cke4_button): ?string { + public function mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem(string $cke4_button, HTMLRestrictions $text_format_html_restrictions): ?array { throw new \OutOfBoundsException(); }