You are here

public function IconSelectCommands::sprites in Icon Select 8

Create svg sprite map.

@command generate-sprites @aliases gens

File

src/Commands/IconSelectCommands.php, line 19

Class

IconSelectCommands
Drush 9 commands.

Namespace

Drupal\icon_select\Commands

Code

public function sprites() {
  $url = SvgSpriteGenerator::generateSprites('icons');
  if ($url) {
    $this
      ->output()
      ->writeln('Generated sprites in ' . $url);
  }
}