You are here

public function TransactorPluginInterface::isApplicable in Transaction 8

Check if the transactor is applicable to a particular entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity to check.

\Drupal\transaction\TransactionTypeInterface $transaction_type: (optional) Restrict the checking to a particular transaction type.

Return value

bool TRUE if transactor is applicable to the given entity.

1 method overrides TransactorPluginInterface::isApplicable()
TransactorBase::isApplicable in src/TransactorBase.php
Check if the transactor is applicable to a particular entity.

File

src/TransactorPluginInterface.php, line 117

Class

TransactorPluginInterface
Defines the interface for transactor plugins.

Namespace

Drupal\transaction

Code

public function isApplicable(ContentEntityInterface $entity, TransactionTypeInterface $transaction_type = NULL);