public function EmailConfirmation::getResponseUrl in Email confirmer 8
Get the response URL for a given operation.
Parameters
string $operation: One of 'confirm', 'cancel' or 'error'.
Return value
\Drupal\Core\Url The URL. NULL if not set.
Overrides EmailConfirmationInterface::getResponseUrl
File
- src/
Entity/ EmailConfirmation.php, line 484
Class
- EmailConfirmation
- Defines the email confirmation entity class.
Namespace
Drupal\email_confirmer\EntityCode
public function getResponseUrl($operation) {
$uri = $this
->get($operation . '_url')
->getString();
return $uri ? Url::fromUri($uri) : NULL;
}