You are here

class CKEditorMediaEmbedCommands in CKEditor Media Embed Plugin 8

CKEditor Media Embed Drush command file.

Hierarchy

Expanded class hierarchy of CKEditorMediaEmbedCommands

1 string reference to 'CKEditorMediaEmbedCommands'
drush.services.yml in ./drush.services.yml
drush.services.yml
1 service uses CKEditorMediaEmbedCommands
ckeditor_media_embed.commands in ./drush.services.yml
Drupal\ckeditor_media_embed\Command\Drush\CKEditorMediaEmbedCommands

File

src/Command/Drush/CKEditorMediaEmbedCommands.php, line 13

Namespace

Drupal\ckeditor_media_embed\Command\Drush
View source
class CKEditorMediaEmbedCommands extends DrushCommands {

  /**
   * The CKEditor plugin installation command.
   *
   * @var \Drupal\ckeditor_media_embed\Commands\InstallCommand
   */
  protected $installCommand;

  /**
   * The CKEditor plugin update command.
   *
   * @var \Drupal\ckeditor_media_embed\Commands\UpdateCommand
   */
  protected $updateCommand;

  /**
   * Constructs CKEditor Media Embed Drush Command object.
   *
   * @param \Drupal\ckeditor_media_embed\Commands\InstallCommand $installCommand
   *   The CKEditor plugin installation command.
   * @param \Drupal\ckeditor_media_embed\Commands\UpdateCommand $updateCommand
   *   The CKEditor plugin update command.
   */
  public function __construct(InstallCommand $installCommand, UpdateCommand $updateCommand) {
    parent::__construct();
    $this->installCommand = $installCommand;
    $this->updateCommand = $updateCommand;
  }

  /**
   * Install library dependencies for the CKEditor Media Embed plugin.
   *
   * @command ckeditor_media_embed:install
   */
  public function install() {
    $this->installCommand
      ->execute($this
      ->input(), $this
      ->output(), $this
      ->io());
  }

  /**
   * Update library dependencies for the CKEditor Media Embed plugin.
   *
   * @command ckeditor_media_embed:update
   */
  public function update() {
    $this->updateCommand
      ->execute($this
      ->input(), $this
      ->output(), $this
      ->io());
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CKEditorMediaEmbedCommands::$installCommand protected property The CKEditor plugin installation command.
CKEditorMediaEmbedCommands::$updateCommand protected property The CKEditor plugin update command.
CKEditorMediaEmbedCommands::install public function Install library dependencies for the CKEditor Media Embed plugin.
CKEditorMediaEmbedCommands::update public function Update library dependencies for the CKEditor Media Embed plugin.
CKEditorMediaEmbedCommands::__construct public function Constructs CKEditor Media Embed Drush Command object.