projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
path
/
src
/
Form
/
PathFormBase.php
diff --git
a/web/core/modules/path/src/Form/PathFormBase.php
b/web/core/modules/path/src/Form/PathFormBase.php
index 884d24fb8ac2ba01dcbd86bffce701de0ae0de6f..4b1cbd59127885b67711dac453099b71703728c9 100644
(file)
--- a/
web/core/modules/path/src/Form/PathFormBase.php
+++ b/
web/core/modules/path/src/Form/PathFormBase.php
@@
-138,7
+138,7
@@
abstract class PathFormBase extends FormBase {
else {
$form['langcode'] = [
'#type' => 'value',
else {
$form['langcode'] = [
'#type' => 'value',
- '#value' => $this->path['langcode']
+ '#value' => $this->path['langcode']
,
];
}
];
}
@@
-191,9
+191,8
@@
abstract class PathFormBase extends FormBase {
}
}
}
}
-
if (!$this->pathValidator->isValid(trim($source, '/'))) {
if (!$this->pathValidator->isValid(trim($source, '/'))) {
- $form_state->setErrorByName('source', t("
The path '@link_path' is either
invalid or you do not have access to it.", ['@link_path' => $source]));
+ $form_state->setErrorByName('source', t("
Either the path '@link_path' is
invalid or you do not have access to it.", ['@link_path' => $source]));
}
}
}
}
@@
-213,7
+212,7
@@
abstract class PathFormBase extends FormBase {
$this->aliasStorage->save($source, $alias, $langcode, $pid);
$this->aliasStorage->save($source, $alias, $langcode, $pid);
-
drupal_set_message
($this->t('The alias has been saved.'));
+
$this->messenger()->addStatus
($this->t('The alias has been saved.'));
$form_state->setRedirect('path.admin_overview');
}
$form_state->setRedirect('path.admin_overview');
}