You are here

public function NumberPattern::getPlugin in Commerce Core 8.2

Gets the number pattern plugin.

Return value

\Drupal\commerce_number_pattern\Plugin\Commerce\NumberPattern\NumberPatternInterface The number pattern plugin.

Overrides NumberPatternInterface::getPlugin

File

modules/number_pattern/src/Entity/NumberPattern.php, line 124

Class

NumberPattern
Defines the number pattern entity class.

Namespace

Drupal\commerce_number_pattern\Entity

Code

public function getPlugin() {
  return $this
    ->getPluginCollection()
    ->get($this->plugin);
}