public function isSupported() : bool

Fires while checking whether the cron job can be configured or not.


Description

Returns true if the cron job is supported and configurable. In case a cron job is not supported, the system will not allow the selection of the latter while configuring a new job.

For example, in case the cron job should be used only if the restaurant/take-away section is enabled, the following code should be used.

// for restaurant section only
return \VikRestaurants::isRestaurantEnabled();
// for take-away section only
return \VikRestaurants::isTakeAwayEnabled();

Return Value

Boolean.

Last Update: 23 hours ago.
Helpful?