You are here

public function MiconIconize::setIconOnly in Micon 2.x

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

Only show the icon.

Parameters

bool $iconOnly: (optional) Whether to hide the string and only show the icon.

Return value

$this

File

src/MiconIconize.php, line 132

Class

MiconIconize
Class MiconIconize.

Namespace

Drupal\micon

Code

public function setIconOnly($iconOnly = TRUE) {
  $this->display['iconOnly'] = $iconOnly;
  return $this;
}