namespace Drupal\views_ui\Form\Ajax;
-use Drupal\Component\Utility\SafeMarkup;
+use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
]);
$form['view'] = [
'#type' => 'value',
- '#value' => $view
+ '#value' => $view,
];
$displays = $view->get('display');
'action' => 'order',
'relationship' => 'sibling',
'group' => 'weight',
- ]
+ ],
],
'#tree' => TRUE,
'#prefix' => '<div class="scroll" data-drupal-views-scroll>',
],
'link' => [
'#type' => 'link',
- '#title' => SafeMarkup::format('<span>@text</span>', ['@text' => $this->t('Remove')]),
+ '#title' => new FormattableMarkup('<span>@text</span>', ['@text' => $this->t('Remove')]),
'#url' => Url::fromRoute('<none>'),
'#attributes' => [
'id' => 'display-remove-link-' . $id,