mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 00:25:09 +02:00
Icons: Allow Bridge-specified icons (#788)
This commit is contained in:
parent
c4cccfe0f3
commit
704a87ad97
8 changed files with 32 additions and 4 deletions
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue