You are here

public function SearchByPageTesterTest::search_by_page_test_make_queried_page in Search by Page 8

Page callback function for path 'search_by_page_test_queried_page'.

File

tests/src/Functional/SearchByPageTesterTest.php, line 487
General Functional Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com

Class

SearchByPageTesterTest
Base class for testing Search by Page.

Namespace

Drupal\Tests\search_by_page\Functional

Code

public function search_by_page_test_make_queried_page() {

  // Print out different text depending on the value of the query arg.
  $value = $_GET['a'];
  $text = $value == 3 ? t('three') : t('four');
  return '<p>' . $text . '</p>' . '<h2>' . t('Trees') . '</h2>' . '<ul>' . '<li>' . t('Walnut') . '</li>' . '<li>' . t('Hazelnut') . '</li>' . '</ul>';
}