You are here

Classes, traits, and interfaces in Price 2.0.x

Primary tabs

Namesort descending Type Namespace Location Description Direct uses Use statements Strings
Calculator final class Drupal\price src/Calculator.php Provides helpers for bcmath-based arithmetic.
ChainCountryResolver class Drupal\price\Resolver src/Resolver/ChainCountryResolver.php Default implementation of the chain country resolver. 2
ChainCountryResolverInterface interface Drupal\price\Resolver src/Resolver/ChainCountryResolverInterface.php Runs the added resolvers one by one until one of them returns the country. 1 1
ChainLocaleResolver class Drupal\price\Resolver src/Resolver/ChainLocaleResolver.php Default implementation of the chain locale resolver. 2
ChainLocaleResolverInterface interface Drupal\price\Resolver src/Resolver/ChainLocaleResolverInterface.php Runs the added resolvers one by one until one of them returns the locale. 1 1
ChainPriceResolver class Drupal\price\Resolver src/Resolver/ChainPriceResolver.php Default implementation of the chain base price resolver. 2
ChainPriceResolverInterface interface Drupal\price\Resolver src/Resolver/ChainPriceResolverInterface.php Runs the added resolvers one by one until one of them returns the price. 1 1
Context final class Drupal\price src/Context.php Contains known global information (user, time). 4
Country final class Drupal\price src/Country.php Represents a country. 1
CountryCacheContext class Drupal\price\Cache\Context src/Cache/Context/CountryCacheContext.php Defines the country cache context, for "per country" caching. 2
CountryResolverInterface interface Drupal\price\Resolver src/Resolver/CountryResolverInterface.php Defines the interface for country resolvers. 2
Currency class Drupal\price\Entity src/Entity/Currency.php Defines the currency entity class.
Currency class Drupal\price\Plugin\views\filter src/Plugin/views/filter/Currency.php Filter by currency.
CurrencyConstraint class Drupal\price\Plugin\Validation\Constraint src/Plugin/Validation/Constraint/CurrencyConstraint.php Currency constraint.
CurrencyConstraintValidator class Drupal\price\Plugin\Validation\Constraint src/Plugin/Validation/Constraint/CurrencyConstraintValidator.php Validates the currency constraint.
CurrencyForm class Drupal\price\Form src/Form/CurrencyForm.php Provides a form for adding/editing currencies.
CurrencyFormatter class Drupal\price src/CurrencyFormatter.php Extends the commerceguys/intl CurrencyFormatter to provide better defaults. 2
CurrencyImporter class Drupal\price src/CurrencyImporter.php Default implementation of the currency importer. 2
CurrencyImporterInterface interface Drupal\price src/CurrencyImporterInterface.php Imports the library-provided currency data into config entities. 1 1
CurrencyImportForm class Drupal\price\Form src/Form/CurrencyImportForm.php Provides a form for importing currencies from library definitions. 1
CurrencyInterface interface Drupal\price\Entity src/Entity/CurrencyInterface.php Defines the interface for currencies. 1 3
CurrencyListBuilder class Drupal\price src/CurrencyListBuilder.php Defines the list builder for currencies.
CurrencyMismatchException class Drupal\price\Exception src/Exception/CurrencyMismatchException.php Thrown when trying to operate on monetary values with different currencies. 1
CurrencyRepository class Drupal\price\Repository src/Repository/CurrencyRepository.php Defines the currency repository. 2
CurrencyRepositoryInterface interface Drupal\price\Repository src/Repository/CurrencyRepositoryInterface.php Defines the currency repository interface. 1
CurrencyRouteProvider class Drupal\price src/CurrencyRouteProvider.php Provides routes for the Currency entity.
CurrentCountry class Drupal\price src/CurrentCountry.php Holds a reference to the current country, resolved on demand. 1 2
CurrentCountryInterface interface Drupal\price src/CurrentCountryInterface.php Holds a reference to the current country, resolved on demand. 1 1
CurrentLocale class Drupal\price src/CurrentLocale.php Holds a reference to the current locale, resolved on demand. 2
CurrentLocaleInterface interface Drupal\price src/CurrentLocaleInterface.php Holds a reference to the current locale, resolved on demand. 1
DefaultCountryResolver class Drupal\price\Resolver src/Resolver/DefaultCountryResolver.php Returns the site's default country. 2
DefaultLocaleResolver class Drupal\price\Resolver src/Resolver/DefaultLocaleResolver.php Returns the locale based on the current language and country. 2
DefaultPriceResolver class Drupal\price\Resolver src/Resolver/DefaultPriceResolver.php Provides the default price, taking it directly from the entity. 2
EventBase class Drupal\price src/EventBase.php Provides a base event class for Price events. 1 1
FormattedPrice class Drupal\price\Plugin\DataType src/Plugin/DataType/FormattedPrice.php Defines a data type for formatted prices.
Locale final class Drupal\price src/Locale.php Represents a locale. 1
LocaleResolverInterface interface Drupal\price\Resolver src/Resolver/LocaleResolverInterface.php Defines the interface for locale resolvers. 2
MinorUnitsConverter class Drupal\price src/MinorUnitsConverter.php Default implementation of the minor units converter. 2
MinorUnitsConverterInterface interface Drupal\price src/MinorUnitsConverterInterface.php Allows converting between Price objects (decimal) and minor units (integer). 1
Number class Drupal\price\Element src/Element/Number.php Provides a number form element with support for language-specific input.
NumberComparator class Drupal\price\Comparator src/Comparator/NumberComparator.php Provides a PHPUnit comparator for numbers cast to strings.
NumberFormatDefinitionEvent class Drupal\price\Event src/Event/NumberFormatDefinitionEvent.php Defines the number format definition event. 1
NumberFormatRepository class Drupal\price\Repository src/Repository/NumberFormatRepository.php Defines the number format repository. 2
NumberFormatter class Drupal\price src/NumberFormatter.php Extends the commerceguys/intl NumberFormatter to provide better defaults. 1 2
PhysicalNumberFormatter class Drupal\price src/PhysicalNumberFormatter.php Wraps the NumberFormatter for use by the Physical Fields module.
Price class Drupal\price\Element src/Element/Price.php Provides a price form element.
Price final class Drupal\price src/Price.php Provides a value object for monetary values. 3
PriceCalculatedFormatter class Drupal\price\Plugin\Field\FieldFormatter src/Plugin/Field/FieldFormatter/PriceCalculatedFormatter.php Plugin implementation of the 'price_calculated' formatter. 1
PriceComparator class Drupal\price\Comparator src/Comparator/PriceComparator.php Provides a PHPUnit comparator for prices.
PriceDefaultFormatter class Drupal\price\Plugin\Field\FieldFormatter src/Plugin/Field/FieldFormatter/PriceDefaultFormatter.php Plugin implementation of the 'price_default' formatter. 1

Pages

Other projects