You are here

public function TransactionTypeInterface::isApplicable in Transaction 8

Check if the type of transaction is applicable to a particular entity.

Parameters

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

Return value

bool TRUE if transaction type is applicable to the given entity.

1 method overrides TransactionTypeInterface::isApplicable()
TransactionType::isApplicable in src/Entity/TransactionType.php
Check if the type of transaction is applicable to a particular entity.

File

src/TransactionTypeInterface.php, line 169

Class

TransactionTypeInterface
Provides an interface defining a type of transaction.

Namespace

Drupal\transaction

Code

public function isApplicable(ContentEntityInterface $entity);