Skip to content
Snippets Groups Projects
Commit e5f5841e authored by Nicolas Ricklin's avatar Nicolas Ricklin Committed by Greg Boggs
Browse files

Issue #3257776 by Aerzas: PHP 8.1 EasyBreadcrumbBuilder::normalizeText deprecation

parent 2f280556
Branches
Tags
1 merge request!34Issue #3257776: PHP 8.1 EasyBreadcrumbBuilder::normalizeText deprecation
......@@ -876,13 +876,16 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface {
* E.g., transforms "about-us" to "About Us" or "About us", according to
* parameters.
*
* @param string $raw_text
* @param string|null $raw_text
* Text to be normalized.
*
* @return string
* Normalized title.
*/
private function normalizeText($raw_text) {
if (empty($raw_text)) {
return '';
}
// Transform '-hello--world_javascript-' to 'hello world javascript'.
$normalized_text = str_replace(['-', '_'], ' ', $raw_text);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment