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\EntityCode
public function getPlugin() {
$plugin = NULL;
if ($plugin_id = $this
->getPluginId()) {
$plugin = $this
->getPluginCollection()
->get($plugin_id);
}
return $plugin;
}