Issue #2420421 by larowlan: HEAD BROKEN: Fatal error: Cannot use Drupal\Component\Utility\Xss as Xss because the name is already in use in /var/lib/drupaltestbot/sites/default/files/checkout/core/modules/views/src/Plugin/views/field/Field.php on line 11
parent
b8364ecfa9
commit
67cc654b1c
|
|
@ -8,7 +8,7 @@
|
|||
namespace Drupal\views\Plugin\views\field;
|
||||
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
use Drupal\Component\Utility\Xss;
|
||||
use Drupal\Component\Utility\Xss as CoreXss;
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
use Drupal\Core\Entity\EntityManagerInterface;
|
||||
use Drupal\Core\Entity\EntityStorageInterface;
|
||||
|
|
@ -876,7 +876,7 @@ class Field extends FieldPluginBase implements CacheablePluginInterface, MultiIt
|
|||
(is_object($item['raw']) ? (array)$item['raw'] : NULL);
|
||||
}
|
||||
if (isset($raw) && isset($raw[$id]) && is_scalar($raw[$id])) {
|
||||
$tokens['{{ ' . $this->options['id'] . '-' . $id . ' }}'] = Xss::filterAdmin($raw[$id]);
|
||||
$tokens['{{ ' . $this->options['id'] . '-' . $id . ' }}'] = CoreXss::filterAdmin($raw[$id]);
|
||||
}
|
||||
else {
|
||||
// Make sure that empty values are replaced as well.
|
||||
|
|
|
|||
Loading…
Reference in New Issue