Log in
Model

Filename

Magento\Config\Model\Config\Backend\Filename

What it does

This class is a backend model for configuration values that represent filenames.

It automatically sanitizes filename inputs by stripping any directory path information before saving, ensuring only the base filename is stored in the configuration.

Developers use this as a backend_model in system.xml when they need to store configuration values that should be filenames without paths.

Public Methods

  • beforeSave()