You are here

public function TransactionType::getPlugin in Transaction 8

Gets the transactor plugin for this transaction type.

Return value

\Drupal\transaction\TransactorPluginInterface The transactor plugin.

Overrides TransactionTypeInterface::getPlugin

1 call to TransactionType::getPlugin()
TransactionType::calculateDependencies in src/Entity/TransactionType.php
Calculates dependencies and stores them in the dependency property.

File

src/Entity/TransactionType.php, line 192

Class

TransactionType
Provides a type of transaction.

Namespace

Drupal\transaction\Entity

Code

public function getPlugin() {
  $plugin = NULL;
  if ($plugin_id = $this
    ->getPluginId()) {
    $plugin = $this
      ->getPluginCollection()
      ->get($plugin_id);
  }
  return $plugin;
}