diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php index 98db690..b759831 100644 --- a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php +++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/views/display/EntityReference.php @@ -13,7 +13,7 @@ * The plugin that handles an EntityReference display. * * "entity_reference_display" is a custom property, used with - * views_get_applicable_views() to retrieve all views with a + * \Drupal\views\Views::getApplicableViews() to retrieve all views with a * 'Entity Reference' display. * * @ingroup views_display_plugins diff --git a/core/modules/views/lib/Drupal/views/EventSubscriber/RouteSubscriber.php b/core/modules/views/lib/Drupal/views/EventSubscriber/RouteSubscriber.php index 14d3426..1fdfcf0 100644 --- a/core/modules/views/lib/Drupal/views/EventSubscriber/RouteSubscriber.php +++ b/core/modules/views/lib/Drupal/views/EventSubscriber/RouteSubscriber.php @@ -188,7 +188,7 @@ public function routeRebuildFinished() { /** * Returns all views/display combinations with routes. * - * @see views_get_applicable_views() + * @see \Drupal\views\Views::getApplicableViews() */ protected function getApplicableViews() { return Views::getApplicableViews('uses_route'); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php index ef31e52..bc99b02 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php @@ -2233,7 +2233,7 @@ function preview() { * @return string * The required display type. Defaults to 'normal'. * - * @see views_fetch_plugin_names() + * @see \Drupal\views\Views::fetchPluginNames() */ protected function getType() { return 'normal'; diff --git a/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php b/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php index 00a9b39..79bce4b 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php @@ -233,7 +233,7 @@ function testStatusFunctions() { } /** - * Tests the views_fetch_plugin_names() function. + * Tests the \Drupal\views\Views::fetchPluginNames() method. */ public function testViewsFetchPluginNames() { // All style plugins should be returned, as we have not specified a type. @@ -257,7 +257,7 @@ public function testViewsFetchPluginNames() { } /** - * Tests the views_plugin_list() function. + * Tests the \Drupal\views\Views::pluginList() method. */ public function testViewsPluginList() { $plugin_list = Views::pluginList(); diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/ArgumentDefaultTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/ArgumentDefaultTest.php index 4f85eb6..6f50fa3 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/ArgumentDefaultTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/ArgumentDefaultTest.php @@ -50,7 +50,7 @@ protected function setUp() { * @see \Drupal\views_test_data\Plugin\views\argument_default\ArgumentDefaultTest */ public function testArgumentDefaultPlugin() { - $view = Views::getViews('test_view'); + $view = Views::getView('test_view'); // Add a new argument and set the test plugin for the argument_default. $options = array( diff --git a/core/modules/views/lib/Drupal/views/Tests/PluginInstanceTest.php b/core/modules/views/lib/Drupal/views/Tests/PluginInstanceTest.php index de571a2..e70bd1d 100644 --- a/core/modules/views/lib/Drupal/views/Tests/PluginInstanceTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/PluginInstanceTest.php @@ -7,6 +7,8 @@ namespace Drupal\views\Tests; +use Drupal\views\Views; + /** * Checks general plugin data and instances for all plugin types. */ @@ -57,7 +59,7 @@ public static function getInfo() { protected function setUp() { parent::setUp(); - $this->definitions = views_get_plugin_definitions(); + $this->definitions = Views::getPluginDefinitions(); } /** diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php index 7477184..1f0b23b 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php @@ -76,7 +76,7 @@ public function form(array $form, array &$form_state) { '#type' => 'machine_name', '#maxlength' => 128, '#machine_name' => array( - 'exists' => 'views_get_view', + 'exists' => '\Drupal\views\Views::getView', 'source' => array('name', 'label'), ), '#description' => $this->t('A unique machine-readable name for this View. It must only contain lowercase letters, numbers, and underscores.'), diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewCloneFormController.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewCloneFormController.php index 6d9e85b..f03eda4 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewCloneFormController.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewCloneFormController.php @@ -39,7 +39,7 @@ public function form(array $form, array &$form_state) { '#type' => 'machine_name', '#maxlength' => 128, '#machine_name' => array( - 'exists' => 'views_get_view', + 'exists' => '\Drupal\views\Views::getView', 'source' => array('label'), ), '#default_value' => '',