Add availability to disable an importer

This commit is contained in:
Nicolas Lœuillet
2025-05-26 15:45:55 +02:00
parent cad5a24fb6
commit 7e7674a4a6
17 changed files with 332 additions and 3 deletions

View File

@ -63,4 +63,15 @@ interface ImportInterface extends LoggerAwareInterface
* @param bool $markAsRead
*/
public function setMarkAsRead($markAsRead): static;
/**
* Get whether the import is enabled.
* If not, the importer won't be available in the UI.
*/
public function isEnabled(): bool;
/**
* Set whether the import is enabled.
*/
public function setEnabled(bool $enabled): static;
}