1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 05:40:24 +02:00

Icons: Allow Bridge-specified icons (#788)

This commit is contained in:
Walter Barrett
2018-08-21 11:46:47 -04:00
committed by LogMANOriginal
parent c4cccfe0f3
commit 704a87ad97
8 changed files with 32 additions and 4 deletions

View File

@@ -246,6 +246,15 @@ abstract class BridgeAbstract implements BridgeInterface {
return static::NAME;
}
public function getIcon(){
// Return cached icon when bridge is using cached data
if(isset($this->extraInfos)) {
return $this->extraInfos['icon'];
}
return '';
}
public function getParameters(){
return static::PARAMETERS;
}
@@ -262,7 +271,8 @@ abstract class BridgeAbstract implements BridgeInterface {
public function getExtraInfos(){
return array(
'name' => $this->getName(),
'uri' => $this->getURI()
'uri' => $this->getURI(),
'icon' => $this->getIcon()
);
}