name = $name; $this->component = [ 'text' => $text, 'href' => $url, 'class' => MinervaUI::iconClass( $iconName ?? $name, 'before' ), ]; if ( $trackClicks !== false ) { $this->component['data-event-name'] = $trackClicks === true ? $name : $trackClicks; } } /** * @inheritDoc */ public function getName() { return $this->name; } /** * @inheritDoc */ public function getCSSClasses(): array { return []; } /** * @inheritDoc */ public function getComponents(): array { return [ $this->component ]; } }