Commit fd6e97b2 authored by Hardik Patel's avatar Hardik Patel Committed by Damien McKenna
Browse files

Issue #3111878 by Hardik_Patel_12: Remove unused GenerateTagCommand::validateGroupExist().

parent 76a4b4c8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
  but recommends 320 or less.
#2841737 by DamienMcKenna, andyg5000, harold20, jmolivas, jim22: DrupalConsole
  commands not working.
#3111878 by Hardik_Patel_12: Remove unused GenerateTagCommand::
  validateGroupExist().


Metatag 8.x-1.11, 2019-12-20
+0 −17
Original line number Diff line number Diff line
@@ -344,21 +344,4 @@ class GenerateTagCommand extends Command {
    return array_keys($this->metatagManager->sortedGroups());
  }

  /**
   * Confirm that a requested group exists.
   *
   * @param string $group
   *   A group's machine name.
   *
   * @return string
   *   The group's name, if available, otherwise an empty string.
   */
  private function validateGroupExist($group) {
    $groups = $this->getGroups();
    if (isset($groups[$group])) {
      return $group;
    }
    return '';
  }

}