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:
committed by
LogMANOriginal
parent
c4cccfe0f3
commit
704a87ad97
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user