You are here

public function EmailInterface::applies in Commerce Email 8

Checks whether the email applies to the given entity.

Ensures that the conditions pass.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.

Return value

bool TRUE if email applies, FALSE otherwise.

1 method overrides EmailInterface::applies()
Email::applies in src/Entity/Email.php
Checks whether the email applies to the given entity.

File

src/Entity/EmailInterface.php, line 206

Class

EmailInterface
@todo Add CC and BCC (and support multiple). @todo Support a plain-text version of the body?

Namespace

Drupal\commerce_email\Entity

Code

public function applies(ContentEntityInterface $entity);