21 $this->setName(
'plugins:deactivate')
22 ->setDescription(
elgg_echo(
'cli:plugins:deactivate:description'))
23 ->addOption(
'force',
'f', InputOption::VALUE_NONE,
24 elgg_echo(
'cli:plugins:deactivate:option:force')
26 ->addArgument(
'plugins', InputArgument::REQUIRED | InputArgument::IS_ARRAY,
27 elgg_echo(
'cli:plugins:deactivate:argument:plugins')
36 $ids = (array) $this->
argument(
'plugins');
37 $force = (bool) $this->
option(
'force');
41 $progress = $helper->start(
elgg_echo(
'cli:plugins:deactivate:progress:start'),
count($ids));
43 foreach ($ids as
$id) {
45 $this->deactivate($id, $force);
46 }
catch (\Exception $ex) {
53 $helper->finish($progress);
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
elgg-cli plugins:deactivate
Abstract command with some utility methods.
_elgg_services()
Get the global service provider.
argument($name)
Returns argument value.
option($name)
Returns option value.
$id
Generic annotation delete action.