Commit e8a96d02 authored by Scott Robertson's avatar Scott Robertson Committed by woprrr

Issue #2865916 by Scott Robertson: Fatal error when adding a new crop type

parent d2ee20c9
......@@ -176,7 +176,7 @@ class CropTypeForm extends EntityForm {
}
elseif ($status == SAVED_NEW) {
drupal_set_message($this->t('The crop type %name has been added.', $t_args));
$context = array_merge($t_args, array('link' => Link::createFromRoute($this->t('View'), 'crop.overview_types')));
$context = array_merge($t_args, array('link' => Link::createFromRoute($this->t('View'), 'crop.overview_types')->toString()));
$this->logger('crop')->notice('Added crop type %name.', $context);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment