class CKEditorMediaEmbedCommands in CKEditor Media Embed Plugin 8
CKEditor Media Embed Drush command file.
Hierarchy
- class \Drupal\ckeditor_media_embed\Command\Drush\CKEditorMediaEmbedCommands extends \Drush\Commands\DrushCommands
Expanded class hierarchy of CKEditorMediaEmbedCommands
1 string reference to 'CKEditorMediaEmbedCommands'
1 service uses CKEditorMediaEmbedCommands
File
- src/
Command/ Drush/ CKEditorMediaEmbedCommands.php, line 13
Namespace
Drupal\ckeditor_media_embed\Command\DrushView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CKEditorMediaEmbedCommands:: |
protected | property | The CKEditor plugin installation command. | |
CKEditorMediaEmbedCommands:: |
protected | property | The CKEditor plugin update command. | |
CKEditorMediaEmbedCommands:: |
public | function | Install library dependencies for the CKEditor Media Embed plugin. | |
CKEditorMediaEmbedCommands:: |
public | function | Update library dependencies for the CKEditor Media Embed plugin. | |
CKEditorMediaEmbedCommands:: |
public | function | Constructs CKEditor Media Embed Drush Command object. |