You are here

CurrentCountryInterface.php in Commerce Core 8.2

Namespace

Drupal\commerce

File

src/CurrentCountryInterface.php
View source
<?php

namespace Drupal\commerce;


/**
 * Holds a reference to the current country, resolved on demand.
 *
 * @see \Drupal\commerce\CurrentCountry
 */
interface CurrentCountryInterface {

  /**
   * Gets the country for the current request.
   *
   * @return \Drupal\commerce\Country
   *   The country.
   */
  public function getCountry();

}

Interfaces

Namesort descending Description
CurrentCountryInterface Holds a reference to the current country, resolved on demand.