if (empty($contact_form)) {
if ($this->currentUser()->hasPermission('administer contact forms')) {
drupal_set_message($this->t('The contact form has not been configured. <a href=":add">Add one or more forms</a> .', [
- ':add' => $this->url('contact.form_add')]), 'error');
+ ':add' => $this->url('contact.form_add'),
+ ]), 'error');
return [];
}
else {