public function getIconType() : string { if (empty($this->icon)) { return ''; } if (starts_with($this->icon, ':') && ends_with($this->icon, ':')) { return 'icon_emoji'; } return 'icon_url'; }