public function ConditionInterface::evaluate in Commerce Core 8.2
Evaluates the condition.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity.
Return value
bool TRUE if the condition has been met, FALSE otherwise.
20 methods override ConditionInterface::evaluate()
- EntityBundleBase::evaluate in src/
Plugin/ Commerce/ Condition/ EntityBundleBase.php - Evaluates the condition.
- OrderBillingAddress::evaluate in modules/
order/ src/ Plugin/ Commerce/ Condition/ OrderBillingAddress.php - Evaluates the condition.
- OrderCurrency::evaluate in modules/
order/ src/ Plugin/ Commerce/ Condition/ OrderCurrency.php - Evaluates the condition.
- OrderCustomer::evaluate in modules/
order/ src/ Plugin/ Commerce/ Condition/ OrderCustomer.php - Evaluates the condition.
- OrderCustomerRole::evaluate in modules/
order/ src/ Plugin/ Commerce/ Condition/ OrderCustomerRole.php - Evaluates the condition.
File
- src/
Plugin/ Commerce/ Condition/ ConditionInterface.php, line 53
Class
- ConditionInterface
- Defines the interface for conditions.
Namespace
Drupal\commerce\Plugin\Commerce\ConditionCode
public function evaluate(EntityInterface $entity);