Log in
Interface

PlaceholderInterface

Magento\Config\Model\Placeholder\PlaceholderInterface

What it does

This interface defines the contract for placeholder generation and restoration in Magento's configuration system.

Developers use implementations of this interface to convert configuration values into placeholders (for storing sensitive or environment-specific data) and restore them back to actual values.

It's commonly used when exporting/importing configuration across different environments, allowing values like database credentials or API keys to be replaced with environment variables or other placeholders.

Public Methods

  • generate()
  • restore()
  • isApplicable()