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 |
|
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 |
2 |
|
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 |
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. |
|
|
2 |
Price |
final class |
Drupal\price |
src/Price.php |
Provides a value object for monetary values. |
|
3 |
|
Price |
class |
Drupal\price\Element |
src/Element/Price.php |
Provides a price form element. |
|
|
|
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. |
|
|
|
PriceDefaultWidget |
class |
Drupal\price\Plugin\Field\FieldWidget |
src/Plugin/Field/FieldWidget/PriceDefaultWidget.php |
Plugin implementation of the 'price_default' widget. |
|
|
|
PriceEvents |
final class |
Drupal\price\Event |
src/Event/PriceEvents.php |
Defines events for the price module. |
|
1 |
|
PriceItem |
class |
Drupal\price\Plugin\Field\FieldType |
src/Plugin/Field/FieldType/PriceItem.php |
Plugin implementation of the 'price' field type. |
|
2 |
|
PricePlainFormatter |
class |
Drupal\price\Plugin\Field\FieldFormatter |
src/Plugin/Field/FieldFormatter/PricePlainFormatter.php |
Plugin implementation of the 'price_plain' formatter. |
|
|
|
PriceTwigExtension |
class |
Drupal\price\TwigExtension |
src/TwigExtension/PriceTwigExtension.php |
Provides Price-specific Twig extensions. |
|
|
2 |
Rounder |
class |
Drupal\price |
src/Rounder.php |
Rounds prices. |
|
|
2 |