}
/**
- * @inheritDoc
+ * Evaluate the content of a single token.
+ *
+ * @param \Civi\Token\TokenRow $row
+ * The record for which we want token values.
+ * @param string $entity
+ * The name of the token entity.
+ * @param string $field
+ * The name of the token field.
+ * @param mixed $prefetch
+ * Any data that was returned by the prefetch().
+ *
+ * @throws \CRM_Core_Exception
*/
public function evaluateToken(TokenRow $row, $entity, $field, $prefetch = NULL) {
// maps token name to api field
}
/**
- * @inheritDoc
+ * Check if the token processor is active.
+ *
+ * @param \Civi\Token\TokenProcessor $processor
+ *
+ * @return bool
*/
public function checkActive(TokenProcessor $processor) {
return in_array($this->getEntityContextSchema(), $processor->context['schema']) ||
* The name of the token field.
* @param mixed $prefetch
* Any data that was returned by the prefetch().
- * @return mixed
*/
abstract public function evaluateToken(TokenRow $row, $entity, $field, $prefetch = NULL);