You are here

protected function TransactionType::getPluginCollection in Transaction 8

Single plugin collection that encapsulates the transactor plugin.

Return value

\Drupal\Core\Plugin\DefaultSingleLazyPluginCollection The transactor plugin collection.

File

src/Entity/TransactionType.php, line 145

Class

TransactionType
Provides a type of transaction.

Namespace

Drupal\transaction\Entity

Code

protected function getPluginCollection() {
  if (!$this->pluginCollection) {

    // Empty configuration, to be set from the transaction type form.
    $this->pluginCollection = new DefaultSingleLazyPluginCollection(\Drupal::service('plugin.manager.transaction.transactor'), $this->transactor['id'], $this->transactor['settings']);
  }
  return $this->pluginCollection;
}