Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / metatag / src / Command / GenerateGroupCommand.php
index 94f144bf7cffb5b3a76ac532a2557192293ac189..3a9d47b8eb4f6d643dd239825d0c634b46d8452a 100644 (file)
@@ -1,8 +1,4 @@
 <?php
-/**
- * @file
- * Contains Drupal\metatag\Command\GenerateGroupCommand.
- */
 
 namespace Drupal\metatag\Command;
 
@@ -34,24 +30,29 @@ class GenerateGroupCommand extends Command {
   use ConfirmationTrait;
 
   /**
-   * @var MetatagGroupGenerator
+   * @var \Drupal\metatag\Generator\MetatagGroupGenerator
    */
   protected $generator;
 
-  /** @var Manager  */
+  /**
+   * @var \Drupal\Console\Extension\Manager
+   */
   protected $extensionManager;
 
   /**
-   * @var ChainQueue
+   * @var \Drupal\Console\Core\Utils\ChainQueue
    */
   protected $chainQueue;
 
   /**
    * GenerateTagCommand constructor.
    *
-   * @param MetatagTagGenerator $generator
-   * @param Manager $extensionManager
-   * @param ChainQueue $chainQueue
+   * @param Drupal\metatag\Generator\MetatagGroupGenerator $generator
+   *   The generator object.
+   * @param Drupal\Console\Extension\Manager $extensionManager
+   *   The extension manager object.
+   * @param Drupal\Console\Core\Utils\ChainQueue $chainQueue
+   *   The chain queue object.
    */
   public function __construct(
       MetatagGroupGenerator $generator,
@@ -95,7 +96,7 @@ class GenerateGroupCommand extends Command {
   protected function execute(InputInterface $input, OutputInterface $output) {
     $io = new DrupalStyle($input, $output);
 
-    // @see use Drupal\Console\Command\ConfirmationTrait::confirmGeneration
+    // @see Drupal\Console\Command\ConfirmationTrait::confirmGeneration
     if (!$this->confirmGeneration($io)) {
       return 1;
     }
@@ -176,8 +177,7 @@ class GenerateGroupCommand extends Command {
     $input->setOption('class-name', $class_name);
 
     // --weight option.
-    // @todo Automatically get the next integer value based upon the current
-    //   group.
+    // @todo Automatically get the next int value based upon the current group.
     $weight = $input->getOption('weight');
     if (is_null($weight)) {
       $weight = $io->ask(