You are here

public function MiconIcon::getWrappingElement in Micon 2.x

Same name and namespace in other branches
  1. 8 src/MiconIcon.php \Drupal\micon\MiconIcon::getWrappingElement()

Get the wrapping element HTML element type.

Return value

string The wrapping tag used within the template.

Overrides MiconIconInterface::getWrappingElement

File

src/MiconIcon.php, line 110

Class

MiconIcon
Defines the Micon icon.

Namespace

Drupal\micon

Code

public function getWrappingElement() {
  return $this->type == 'image' ? 'svg' : 'i';
}