You are here

class IconSelectCommands in Icon Select 8

Drush 9 commands.

Hierarchy

  • class \Drupal\icon_select\Commands\IconSelectCommands extends \Drush\Commands\DrushCommands

Expanded class hierarchy of IconSelectCommands

1 string reference to 'IconSelectCommands'
drush.services.yml in ./drush.services.yml
drush.services.yml
1 service uses IconSelectCommands
icon_select.commands in ./drush.services.yml
\Drupal\icon_select\Commands\IconSelectCommands

File

src/Commands/IconSelectCommands.php, line 11

Namespace

Drupal\icon_select\Commands
View source
class IconSelectCommands extends DrushCommands {

  /**
   * Create svg sprite map.
   *
   * @command generate-sprites
   * @aliases gens
   */
  public function sprites() {
    $url = SvgSpriteGenerator::generateSprites('icons');
    if ($url) {
      $this
        ->output()
        ->writeln('Generated sprites in ' . $url);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
IconSelectCommands::sprites public function Create svg sprite map.