You are here

public function InstallCommand::getMessage in CKEditor Media Embed Plugin 8

Same name in this branch
  1. 8 src/Command/InstallCommand.php \Drupal\ckeditor_media_embed\Command\InstallCommand::getMessage()
  2. 8 src/Command/Drush/InstallCommand.php \Drupal\ckeditor_media_embed\Command\Drush\InstallCommand::getMessage()

Retrieve message text.

Parameters

string $message_key: The key of the requested message.

Return value

string The requested message.

Overrides CKEditorCliCommandInterface::getMessage

File

src/Command/InstallCommand.php, line 84

Class

InstallCommand
Class InstallCommand.

Namespace

Drupal\ckeditor_media_embed\Command

Code

public function getMessage($message_key) {
  return $this
    ->trans("commands.ckeditor_media_embed.install.messages.{$message_key}");
}