Update to Drupal 8.2.2. For more information, see https://www.drupal.org/project/drupal/releases/8.2.2
This commit is contained in:
parent
23ffed3665
commit
507b45a0ed
378 changed files with 11434 additions and 5542 deletions
|
|
@ -101,9 +101,15 @@ function views_tokens($type, $tokens, array $data, array $options, BubbleableMet
|
|||
break;
|
||||
|
||||
case 'url':
|
||||
if ($url = $view->getUrl()) {
|
||||
$replacements[$original] = $url->setOptions($url_options)
|
||||
->toString();
|
||||
try {
|
||||
if ($url = $view->getUrl()) {
|
||||
$replacements[$original] = $url->setOptions($url_options)
|
||||
->toString();
|
||||
}
|
||||
}
|
||||
catch (\InvalidArgumentException $e) {
|
||||
// The view has no URL so we leave the value empty.
|
||||
$replacements[$original] = '';
|
||||
}
|
||||
break;
|
||||
case 'base-table':
|
||||
|
|
|
|||
Reference in a new issue