Log in
Model

TimeFormat

Magento\Catalog\Model\Config\Source\TimeFormat

What it does

This class provides time format options for configuration settings in the Magento Catalog module.

Developers use it as a source model in system.xml configuration files to give administrators a choice between 12-hour (AM/PM) and 24-hour time display formats.

It implements ArrayInterface to return options as an array of value-label pairs.

Public Methods

  • toOptionArray()