You are here

public function Micon::getName in Micon 8

Same name in this branch
  1. 8 src/TwigExtension/Micon.php \Drupal\micon\TwigExtension\Micon::getName()
  2. 8 src/Entity/Micon.php \Drupal\micon\Entity\Micon::getName()
Same name and namespace in other branches
  1. 2.x src/Entity/Micon.php \Drupal\micon\Entity\Micon::getName()

Get unique IcoMoon package name.

Overrides MiconInterface::getName

1 call to Micon::getName()
Micon::archiveExtract in src/Entity/Micon.php
Properly extract and store an IcoMoon zip file.

File

src/Entity/Micon.php, line 128

Class

Micon
Defines the Micon entity.

Namespace

Drupal\micon\Entity

Code

public function getName() {
  $info = $this
    ->getInfo();
  return isset($info['metadata']['name']) ? $info['metadata']['name'] : str_replace('-', '', $this
    ->getPrefix());
}