Issue #2208609 by sun, Jalandhar, damiankloip: Move Json utility class into Drupal\Component\Serialization.
parent
c9711dc849
commit
2681750501
|
@ -8,8 +8,8 @@
|
||||||
* a cached page are instead located in bootstrap.inc.
|
* a cached page are instead located in bootstrap.inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\Crypt;
|
use Drupal\Component\Utility\Crypt;
|
||||||
use Drupal\Component\Utility\Json;
|
|
||||||
use Drupal\Component\Utility\Number;
|
use Drupal\Component\Utility\Number;
|
||||||
use Drupal\Component\Utility\Settings;
|
use Drupal\Component\Utility\Settings;
|
||||||
use Drupal\Component\Utility\SortArray;
|
use Drupal\Component\Utility\SortArray;
|
||||||
|
@ -2824,7 +2824,7 @@ function drupal_clear_js_cache() {
|
||||||
* @ingroup php_wrappers
|
* @ingroup php_wrappers
|
||||||
*
|
*
|
||||||
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
|
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
|
||||||
* Use \Drupal\Component\Utility\Json::encode().
|
* Use \Drupal\Component\Serialization\Json::encode().
|
||||||
*/
|
*/
|
||||||
function drupal_json_encode($var) {
|
function drupal_json_encode($var) {
|
||||||
return Json::encode($var);
|
return Json::encode($var);
|
||||||
|
@ -2838,7 +2838,7 @@ function drupal_json_encode($var) {
|
||||||
* @ingroup php_wrappers
|
* @ingroup php_wrappers
|
||||||
*
|
*
|
||||||
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
|
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
|
||||||
* Use \Drupal\Component\Utility\Json::decode().
|
* Use \Drupal\Component\Serialization\Json::decode().
|
||||||
*/
|
*/
|
||||||
function drupal_json_decode($var) {
|
function drupal_json_decode($var) {
|
||||||
return Json::decode($var);
|
return Json::decode($var);
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* Contains \Drupal\Component\Utility\Json.
|
* Contains \Drupal\Component\Serialization\Json.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Drupal\Component\Utility;
|
namespace Drupal\Component\Serialization;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides helpers for dealing with json.
|
* Provides helpers for dealing with json.
|
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
namespace Drupal\Core\Asset;
|
namespace Drupal\Core\Asset;
|
||||||
|
|
||||||
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Core\State\StateInterface;
|
use Drupal\Core\State\StateInterface;
|
||||||
use Drupal\Component\Utility\Json;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders JavaScript assets.
|
* Renders JavaScript assets.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\Core\Utility;
|
namespace Drupal\Core\Utility;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\String;
|
use Drupal\Component\Utility\String;
|
||||||
use Drupal\Core\Extension\ModuleHandlerInterface;
|
use Drupal\Core\Extension\ModuleHandlerInterface;
|
||||||
use Drupal\Core\Path\AliasManagerInterface;
|
use Drupal\Core\Path\AliasManagerInterface;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
namespace Drupal\block;
|
namespace Drupal\block;
|
||||||
|
|
||||||
use Drupal\Component\Plugin\PluginManagerInterface;
|
use Drupal\Component\Plugin\PluginManagerInterface;
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\String;
|
use Drupal\Component\Utility\String;
|
||||||
use Drupal\Core\Cache\Cache;
|
use Drupal\Core\Cache\Cache;
|
||||||
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
|
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\block\Tests\Views;
|
namespace Drupal\block\Tests\Views;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\String;
|
use Drupal\Component\Utility\String;
|
||||||
use Drupal\views\Views;
|
use Drupal\views\Views;
|
||||||
use Drupal\views\Tests\ViewTestBase;
|
use Drupal\views\Tests\ViewTestBase;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\comment\Tests;
|
namespace Drupal\comment\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Core\Language\Language;
|
use Drupal\Core\Language\Language;
|
||||||
use Drupal\comment\CommentInterface;
|
use Drupal\comment\CommentInterface;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\config_translation\Tests;
|
namespace Drupal\config_translation\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\Unicode;
|
use Drupal\Component\Utility\Unicode;
|
||||||
use Drupal\Core\Config\FileStorage;
|
use Drupal\Core\Config\FileStorage;
|
||||||
use Drupal\Core\Language\Language;
|
use Drupal\Core\Language\Language;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\content_translation\Tests;
|
namespace Drupal\content_translation\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\node\Entity\NodeType;
|
use Drupal\node\Entity\NodeType;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* Adds contextual links to perform actions related to elements on a page.
|
* Adds contextual links to perform actions related to elements on a page.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\UrlHelper;
|
use Drupal\Component\Utility\UrlHelper;
|
||||||
use Drupal\Core\Template\Attribute;
|
use Drupal\Core\Template\Attribute;
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
|
|
||||||
namespace Drupal\contextual\Plugin\views\field;
|
namespace Drupal\contextual\Plugin\views\field;
|
||||||
|
|
||||||
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\UrlHelper;
|
use Drupal\Component\Utility\UrlHelper;
|
||||||
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
use Drupal\views\Plugin\views\field\FieldPluginBase;
|
||||||
use Drupal\views\ResultRow;
|
use Drupal\views\ResultRow;
|
||||||
use Drupal\Component\Utility\Json;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a handler that adds contextual links.
|
* Provides a handler that adds contextual links.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\contextual\Tests;
|
namespace Drupal\contextual\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
use Drupal\Core\Template\Attribute;
|
use Drupal\Core\Template\Attribute;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\editor\Tests;
|
namespace Drupal\editor\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
use Drupal\Component\Utility\String;
|
use Drupal\Component\Utility\String;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\editor\Tests;
|
namespace Drupal\editor\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\editor\Tests;
|
namespace Drupal\editor\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Core\Language\Language;
|
use Drupal\Core\Language\Language;
|
||||||
use Drupal\quickedit\EditorSelector;
|
use Drupal\quickedit\EditorSelector;
|
||||||
use Drupal\quickedit\MetadataGenerator;
|
use Drupal\quickedit\MetadataGenerator;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\entity_reference\Tests;
|
namespace Drupal\entity_reference\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\String;
|
use Drupal\Component\Utility\String;
|
||||||
use Drupal\Component\Utility\Tags;
|
use Drupal\Component\Utility\Tags;
|
||||||
use Drupal\entity_reference\EntityReferenceController;
|
use Drupal\entity_reference\EntityReferenceController;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\history\Tests;
|
namespace Drupal\history\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* object files are supported.
|
* object files are supported.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\UrlHelper;
|
use Drupal\Component\Utility\UrlHelper;
|
||||||
use Drupal\Component\Utility\Xss;
|
use Drupal\Component\Utility\Xss;
|
||||||
use Drupal\Core\Cache\Cache;
|
use Drupal\Core\Cache\Cache;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\menu_ui\Tests;
|
namespace Drupal\menu_ui\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines a test class for testing menu and menu link functionality.
|
* Defines a test class for testing menu and menu link functionality.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\node\Tests\Views;
|
namespace Drupal\node\Tests\Views;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\quickedit\Tests;
|
namespace Drupal\quickedit\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Core\Field\FieldDefinitionInterface;
|
use Drupal\Core\Field\FieldDefinitionInterface;
|
||||||
use Drupal\Core\Language\Language;
|
use Drupal\Core\Language\Language;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\quickedit\Tests;
|
namespace Drupal\quickedit\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
use Drupal\quickedit\Ajax\MetadataCommand;
|
use Drupal\quickedit\Ajax\MetadataCommand;
|
||||||
use Drupal\Core\Ajax\AppendCommand;
|
use Drupal\Core\Ajax\AppendCommand;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\rest\Tests;
|
namespace Drupal\rest\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests resource creation on user, node and test entities.
|
* Tests resource creation on user, node and test entities.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\rest\Tests;
|
namespace Drupal\rest\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\rest\Tests\RESTTestBase;
|
use Drupal\rest\Tests\RESTTestBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\rest\Tests;
|
namespace Drupal\rest\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Core\Language\Language;
|
use Drupal\Core\Language\Language;
|
||||||
use Drupal\rest\Tests\RESTTestBase;
|
use Drupal\rest\Tests\RESTTestBase;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\rest\Tests;
|
namespace Drupal\rest\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\rest\Tests\RESTTestBase;
|
use Drupal\rest\Tests\RESTTestBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
namespace Drupal\simpletest;
|
namespace Drupal\simpletest;
|
||||||
|
|
||||||
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\Crypt;
|
use Drupal\Component\Utility\Crypt;
|
||||||
use Drupal\Component\Utility\Json;
|
|
||||||
use Drupal\Component\Utility\NestedArray;
|
use Drupal\Component\Utility\NestedArray;
|
||||||
use Drupal\Component\Utility\String;
|
use Drupal\Component\Utility\String;
|
||||||
use Drupal\Component\Utility\Xss;
|
use Drupal\Component\Utility\Xss;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\system\Controller;
|
namespace Drupal\system\Controller;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Core\Controller\ControllerBase;
|
use Drupal\Core\Controller\ControllerBase;
|
||||||
use Drupal\Core\Entity\Query\QueryFactory;
|
use Drupal\Core\Entity\Query\QueryFactory;
|
||||||
use Drupal\Core\Extension\ThemeHandlerInterface;
|
use Drupal\Core\Extension\ThemeHandlerInterface;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\system\Tests\Common;
|
namespace Drupal\system\Tests\Common;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\simpletest\DrupalUnitTestBase;
|
use Drupal\simpletest\DrupalUnitTestBase;
|
||||||
use Drupal\Component\Utility\Crypt;
|
use Drupal\Component\Utility\Crypt;
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
namespace Drupal\system\Tests\Common;
|
namespace Drupal\system\Tests\Common;
|
||||||
|
|
||||||
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\Html;
|
use Drupal\Component\Utility\Html;
|
||||||
use Drupal\Component\Utility\Json;
|
|
||||||
use Drupal\Core\Render\Element;
|
use Drupal\Core\Render\Element;
|
||||||
use Drupal\simpletest\DrupalUnitTestBase;
|
use Drupal\simpletest\DrupalUnitTestBase;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\system\Tests\Form;
|
namespace Drupal\system\Tests\Form;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\system\Tests\Form;
|
namespace Drupal\system\Tests\Form;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\String;
|
use Drupal\Component\Utility\String;
|
||||||
use Drupal\Core\Render\Element;
|
use Drupal\Core\Render\Element;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\system\Tests\Form;
|
namespace Drupal\system\Tests\Form;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
use Drupal\Core\Language\Language;
|
use Drupal\Core\Language\Language;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\system\Tests\Form;
|
namespace Drupal\system\Tests\Form;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\system\Tests\Form;
|
namespace Drupal\system\Tests\Form;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\simpletest\WebTestBase;
|
use Drupal\simpletest\WebTestBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
namespace Drupal\system\Tests\Controller;
|
namespace Drupal\system\Tests\Controller;
|
||||||
|
|
||||||
|
use Drupal\Component\Serialization\Json;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Drupal\Component\Utility\Json;
|
|
||||||
use Drupal\Core\Template\Attribute;
|
use Drupal\Core\Template\Attribute;
|
||||||
use Drupal\system\Controller\SystemController;
|
use Drupal\system\Controller\SystemController;
|
||||||
use Drupal\Tests\UnitTestCase;
|
use Drupal\Tests\UnitTestCase;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* Helper module for the form API tests.
|
* Helper module for the form API tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Core\Database\Database;
|
use Drupal\Core\Database\Database;
|
||||||
use Drupal\Core\Language\Language;
|
use Drupal\Core\Language\Language;
|
||||||
use Drupal\form_test\Callbacks;
|
use Drupal\form_test\Callbacks;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\taxonomy\Tests;
|
namespace Drupal\taxonomy\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\Tags;
|
use Drupal\Component\Utility\Tags;
|
||||||
use Drupal\Core\Field\FieldDefinitionInterface;
|
use Drupal\Core\Field\FieldDefinitionInterface;
|
||||||
use Drupal\Component\Utility\String;
|
use Drupal\Component\Utility\String;
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Drupal\views\Tests;
|
namespace Drupal\views\Tests;
|
||||||
use Drupal\Component\Utility\Json;
|
|
||||||
|
use Drupal\Component\Serialization\Json;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the ajax view functionality.
|
* Tests the ajax view functionality.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\views_ui\Tests;
|
namespace Drupal\views_ui\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Component\Utility\String;
|
use Drupal\Component\Utility\String;
|
||||||
|
|
||||||
use Drupal\views\Views;
|
use Drupal\views\Views;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\views_ui\Tests;
|
namespace Drupal\views_ui\Tests;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the preview form in the UI.
|
* Tests the preview form in the UI.
|
||||||
|
|
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* Contains \Drupal\Tests\Component\Utility\JsonTest.
|
* Contains \Drupal\Tests\Component\Serialization\JsonTest.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Drupal\Tests\Component\Utility;
|
namespace Drupal\Tests\Component\Serialization;
|
||||||
|
|
||||||
use Drupal\Component\Utility\Json;
|
use Drupal\Component\Serialization\Json;
|
||||||
use Drupal\Tests\UnitTestCase;
|
use Drupal\Tests\UnitTestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the Json::encode() and Json::decode() functions.
|
* Tests the Json::encode() and Json::decode() functions.
|
||||||
*
|
*
|
||||||
* @see \Drupal\Component\Utility\Json
|
* @see \Drupal\Component\Serialization\Json
|
||||||
*/
|
*/
|
||||||
class JsonTest extends UnitTestCase {
|
class JsonTest extends UnitTestCase {
|
||||||
|
|
Loading…
Reference in New Issue