Log in
Model

TimeFormat

Magento\Catalog\Model\Config\Source\TimeFormat

What it does

This class provides time format options (12-hour and 24-hour) for configuration settings in the Magento Catalog module.

Developers use this as a source model in system configuration XML to populate dropdown fields where administrators can select their preferred time display format.

It implements the ArrayInterface to return standardized option arrays for form elements.

Public Methods

  • toOptionArray()