* Preprocessors and theme functions for the Views UI.
*/
-use Drupal\Component\Utility\SafeMarkup;
+use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Form\FormState;
use Drupal\Core\Render\Element;
use Drupal\Core\Render\Element\Checkboxes;
'title' => t('Remove this item'),
],
]),
- '#title' => SafeMarkup::format('<span>@text</span>', ['@text' => t('Remove')]),
+ '#title' => new FormattableMarkup('<span>@text</span>', ['@text' => t('Remove')]),
];
$remove = [$form['group_items'][$group_id]['remove'], $link];
$data = [
'action' => 'order',
'relationship' => 'sibling',
'group' => 'weight',
- ]
+ ],
],
];
$remove_link = [
'#type' => 'link',
'#url' => Url::fromRoute('<none>'),
- '#title' => SafeMarkup::format('<span>@text</span>', ['@text' => t('Remove')]),
+ '#title' => new FormattableMarkup('<span>@text</span>', ['@text' => t('Remove')]),
'#weight' => '1',
'#options' => [
'attributes' => [
'action' => 'order',
'relationship' => 'sibling',
'group' => 'weight',
- ]
+ ],
],
];
}