Issue #3047801 by Eduardo Morales, mikelutz, pguillard, nlisgo,...
Issue #3047801 by Eduardo Morales, mikelutz, pguillard, nlisgo, sathish.redcrackle, Berdir: Replace all calls to the deprecated Drupal::l() function in Core
* @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
* Use \Drupal\Core\Link instead.
* Example:
* @code
* $link = Link::fromTextAndUrl($text, $url);
* @endcode
*/
publicstaticfunctionl($text,Url$url){
@trigger_error('\Drupal::l() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Link::fromTextAndUrl() instead. See https://www.drupal.org/node/2614344',E_USER_DEPRECATED);
$output='<p>'.t('Block placement is specific to each theme on your site. Changes will not be saved until you click <em>Save blocks</em> at the bottom of the page.').'</p>';
$output.='<p>'.\Drupal::l(t('Demonstrate block regions (@theme)',['@theme'=>$themes[$demo_theme]->info['name']]),newUrl('block.admin_demo',['theme'=>$demo_theme])).'</p>';
$output.='<p>'.Link::fromTextAndUrl(t('Demonstrate block regions (@theme)',['@theme'=>$themes[$demo_theme]->info['name']]),Url::fromRoute('block.admin_demo',['theme'=>$demo_theme]))->toString().'</p>';