id = $id; $this->label = $label; $this->icon = $icon; $this->link = $link; $this->priority = $priority; $this->detail = $detail; } /** * @return string * @since 14.0.0 */ public function getId(): string { return $this->id; } /** * @return string * @since 14.0.0 */ public function getLabel(): string { return $this->label; } /** * @return string * @since 14.0.0 */ public function getIcon(): string { return $this->icon; } /** * @return string * @since 14.0.0 */ public function getLink(): string { return $this->link; } /** * @return int * @since 14.0.0 */ public function getPriority(): int { return $this->priority; } /** * @return string * @since 14.0.0 */ public function render(): string { $detailContent = ($this->detail !== '') ? ' (' . Util::sanitizeHTML($this->detail) . ')' : ''; return sprintf( '
  • %s %s
  • ', Util::sanitizeHTML($this->id), Util::sanitizeHTML($this->link), Util::sanitizeHTML($this->icon), Util::sanitizeHTML($this->label), $detailContent ); } }