Log in
Model

Frequency

Magento\Cron\Model\Config\Source\Frequency

What it does

This class provides frequency options for cron job scheduling in Magento 2's admin configuration.

Developers use this as a source model in system.xml to display a dropdown with Daily, Weekly, and Monthly scheduling options.

It's commonly used when configuring automated tasks that need to run at regular intervals.

Public Methods

  • toOptionArray()