You are here

public function Embed::getSettingsLink in CKEditor Media Embed Plugin 8

Retrieve the link to the configuration page for the settings.

Overrides EmbedInterface::getSettingsLink

File

src/Embed.php, line 179

Class

Embed
The default CKEditor Media Embed class.

Namespace

Drupal\ckeditor_media_embed

Code

public function getSettingsLink() {
  $url = Url::fromRoute('ckeditor_media_embed.ckeditor_media_embed_settings_form', [
    'destination' => $this->currentPath
      ->getPath(),
  ]);
  return Markup::create(Link::fromTextAndUrl($this
    ->t('CKEditor Media Embed plugin settings page'), $url)
    ->toString());
}