Log in
Repository

CountryRepositoryInterface

Magento\TwoFactorAuth\Api\CountryRepositoryInterface

What it does

This interface defines the contract for managing country data within Magento's Two-Factor Authentication system.

Developers use this repository to save, retrieve, delete, and search for country records, particularly when implementing country-specific 2FA rules or restrictions.

It provides standard CRUD operations plus specialized retrieval by country code.

Public Methods

  • save()
  • getById()
  • getByCode()
  • delete()
  • getList()