Commit 3d545fb4 authored by pifagor's avatar pifagor

Issue #3034169 by akshay_d, SabitDev, pifagor: Deprecated strtolower need to be replaced

parent 3931924e
......@@ -57,7 +57,7 @@ class XmlSitemapMenuFunctionalTest extends XmlSitemapTestBase {
//
// $edit = [
// 'label' => $this->randomMachineName(),
// 'id' => Unicode::strtolower($this->randomMachineName()),
// 'id' => mb_strtolower($this->randomMachineName()),
// 'xmlsitemap[status]' => '1',
// 'xmlsitemap[priority]' => '1.0',
// ];
......
......@@ -1182,7 +1182,7 @@ function xmlsitemap_add_form_link_options(array &$form, $entity, $bundle, $id) {
'#prefix' => '<div class="description">',
'#suffix' => '</div>',
'#markup' => t('The default XML sitemap settings for this @bundle can be changed <a href="@link-type">here</a>.', [
'@bundle' => Unicode::strtolower($info['bundle label']),
'@bundle' => mb_strtolower($info['bundle label']),
'@link-type' => Url::fromUri($path, ['query' => \Drupal::destination()->getAsArray()])->toString(),
]),
];
......@@ -1308,7 +1308,7 @@ function xmlsitemap_link_bundle_settings_form_submit($form, &$form_state) {
$entity_info = $form['xmlsitemap']['#entity_info'];
if (!empty($form['xmlsitemap']['#show_message'])) {
drupal_set_message(t('XML sitemap settings for the @bundle-label %bundle have been saved.', ['@bundle-label' => Unicode::strtolower($entity_info['bundle label']), '%bundle' => $entity_info['bundles'][$bundle]['label']]));
drupal_set_message(t('XML sitemap settings for the @bundle-label %bundle have been saved.', ['@bundle-label' => mb_strtolower($entity_info['bundle label']), '%bundle' => $entity_info['bundles'][$bundle]['label']]));
}
// Unset the form values since we have already saved the bundle settings and
......@@ -2187,7 +2187,7 @@ function xmlsitemap_get_status_options($default = NULL) {
if (isset($default)) {
$default = $default ? 1 : 0;
$options['default'] = t('Default (@value)', ['@value' => Unicode::strtolower($statuses[$default])]);
$options['default'] = t('Default (@value)', ['@value' => mb_strtolower($statuses[$default])]);
}
$options += $statuses;
......
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