Loading src/Commands/NodeRevisionDeleteCommands.php +0 −15 Original line number Diff line number Diff line Loading @@ -186,8 +186,6 @@ class NodeRevisionDeleteCommands extends DrushCommands { * * @command nrd:set-time * @aliases nrd-st, nrd-set-time * * @throws \Drush\Exceptions\UserAbortException */ public function setTime(string $time = ''): void { // Getting an editable config because we will get and set a value. Loading Loading @@ -425,19 +423,6 @@ class NodeRevisionDeleteCommands extends DrushCommands { public function deletePriorRevisionsValidate(CommandData $commandData): bool { $input = $commandData->input(); $nid = $input->getArgument('nid'); $vid = $input->getArgument('vid'); // Nid argument must be numeric. if (!is_numeric($nid)) { $this->io()->error(dt('Argument nid must be numeric.')); return FALSE; } // Vid argument must be numeric. if (!is_numeric($vid)) { $this->io()->error(dt('Argument vid must be numeric.')); return FALSE; } // Check if argument nid is a valid node id. $node = $this->entityTypeManager->getStorage('node')->load($nid); Loading Loading
src/Commands/NodeRevisionDeleteCommands.php +0 −15 Original line number Diff line number Diff line Loading @@ -186,8 +186,6 @@ class NodeRevisionDeleteCommands extends DrushCommands { * * @command nrd:set-time * @aliases nrd-st, nrd-set-time * * @throws \Drush\Exceptions\UserAbortException */ public function setTime(string $time = ''): void { // Getting an editable config because we will get and set a value. Loading Loading @@ -425,19 +423,6 @@ class NodeRevisionDeleteCommands extends DrushCommands { public function deletePriorRevisionsValidate(CommandData $commandData): bool { $input = $commandData->input(); $nid = $input->getArgument('nid'); $vid = $input->getArgument('vid'); // Nid argument must be numeric. if (!is_numeric($nid)) { $this->io()->error(dt('Argument nid must be numeric.')); return FALSE; } // Vid argument must be numeric. if (!is_numeric($vid)) { $this->io()->error(dt('Argument vid must be numeric.')); return FALSE; } // Check if argument nid is a valid node id. $node = $this->entityTypeManager->getStorage('node')->load($nid); Loading