forked from wallabag/wallabag
Added new setting to show / hide articles thumbnails
This commit is contained in:
committed by
Simounet
parent
2aa18b7b90
commit
a94d7503c2
@ -117,6 +117,15 @@ class Config
|
||||
*/
|
||||
private $listMode;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Column(name="display_thumbnails", type="integer", nullable=true)
|
||||
*
|
||||
* @Groups({"config_api"})
|
||||
*/
|
||||
private $displayThumbnails;
|
||||
|
||||
/**
|
||||
* @ORM\OneToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="config")
|
||||
*/
|
||||
@ -362,6 +371,26 @@ class Config
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getDisplayThumbnails(): ?bool
|
||||
{
|
||||
return $this->displayThumbnails;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $displayThumbnails
|
||||
*
|
||||
* @return Config
|
||||
*/
|
||||
public function setDisplayThumbnails(bool $displayThumbnails)
|
||||
{
|
||||
$this->displayThumbnails = $displayThumbnails;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Config
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user