You are here

public function TransactionType::setPluginId in Transaction 8

Set the transactor plugin.

Calling this method reset the current plugin and its settings.

Parameters

string $plugin_id: A string containing the flag type plugin ID.

Return value

\Drupal\transaction\TransactionTypeInterface The called transaction type.

Overrides TransactionTypeInterface::setPluginId

File

src/Entity/TransactionType.php, line 168

Class

TransactionType
Provides a type of transaction.

Namespace

Drupal\transaction\Entity

Code

public function setPluginId($plugin_id) {
  $this->transactor['id'] = $plugin_id;
  $this->transactor['settings'] = [];
  return $this;
}