diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php index 7c7136f..2f75320 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php @@ -250,8 +250,8 @@ public function testRenderNullPager() { } $view = views_get_view('test_pager_full'); $this->executeView($view); - // force the value again here. - $view->setUseAJAX(TRUE); + // Force the value again here. + $view->setUsesAJAX(TRUE); $view->pager = NULL; $output = $view->render(); $output = drupal_render($output); diff --git a/core/modules/views/lib/Drupal/views/Tests/ViewExecutableTest.php b/core/modules/views/lib/Drupal/views/Tests/ViewExecutableTest.php index cd8397d..7ab1d98 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ViewExecutableTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ViewExecutableTest.php @@ -57,7 +57,6 @@ class ViewExecutableTest extends ViewUnitTestBase { 'executed', 'args', 'build_info', - 'usesAJAX', 'result', 'attachment_before', 'attachment_after', @@ -193,7 +192,7 @@ public function testPropertyMethods() { // Test the setUseAJAX() method. $this->assertFalse($view->usesAJAX()); - $view->setUseAJAX(TRUE); + $view->setUsesAJAX(TRUE); $this->assertTrue($view->usesAJAX()); $view->setDisplay(); diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php index dd1d27d..f69f95f 100644 --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -67,7 +67,7 @@ class ViewExecutable { * * @var bool */ - public $usesAJAX = FALSE; + protected $usesAJAX = FALSE; /** * Where the results of a query will go. @@ -545,8 +545,8 @@ public function usePager() { * tablesorting and exposed filters will be fetched via an AJAX call * rather than a page refresh. */ - public function setUseAJAX($use_ajax) { - $this->usesAJAX = $use_ajax; + public function setUsesAJAX($use_ajax) { + $this->usesAJAX = (bool) $use_ajax; } /**