diff --git a/core/lib/Drupal.php b/core/lib/Drupal.php index 455cd7a..711028b 100644 --- a/core/lib/Drupal.php +++ b/core/lib/Drupal.php @@ -542,9 +542,6 @@ public static function linkGenerator() { * The link text for the anchor tag. * @param \Drupal\Core\Url $url * The URL object used for the link. - * @param bool $collect_bubbleable_metadata - * (optional) Defaults to FALSE. When TRUE, both the generated URL and its - * associated bubbleable metadata are returned. * * @return \Drupal\Core\GeneratedLink * A GeneratedLink object containing a link to the given route and diff --git a/core/lib/Drupal/Core/Menu/menu.api.php b/core/lib/Drupal/Core/Menu/menu.api.php index b6ad987..0efea8b 100644 --- a/core/lib/Drupal/Core/Menu/menu.api.php +++ b/core/lib/Drupal/Core/Menu/menu.api.php @@ -441,7 +441,7 @@ function hook_system_breadcrumb_alter(\Drupal\Core\Breadcrumb\Breadcrumb &$bread * link is a "route link", 'route_name' will be set, otherwise 'path' will be * set. The following keys can be altered: * - text: The link text for the anchor tag. If the hook implementation - * changes this text is needs to preserve the safeness of the original text. + * changes this text it needs to preserve the safeness of the original text. * Using t() or \Drupal\Component\Utility\SafeMarkup::format() with * @placeholder is recommended as this will escape the original text if * necessary. If the resulting text is not marked safe it will be escaped. diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php index 63fe3f9..021162f 100644 --- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php @@ -1306,8 +1306,7 @@ public function renderText($alter) { // Preserve whether or not the string is safe. Since $suffix comes from // \Drupal::l(), it is safe to append. Use SafeMarkup::isSafe() here because - // $value_is_safe is safe has been used above and renderAsLink() can return - // both safe and unsafe values. + // renderAsLink() can return both safe and unsafe values. if (SafeMarkup::isSafe($value)) { return ViewsRenderPipelineSafeString::create($value . $suffix); }