public function SearchByPageTesterTest::search_by_page_test_node_info in Search by Page 8
Implements hook_node_info().
Defines two node types, so that they can be set up for searching or not searching.
File
- tests/
src/ Functional/ SearchByPageTesterTest.php, line 342 - 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\FunctionalCode
public function search_by_page_test_node_info() {
return array(
'search_by_page_indexed' => array(
'name' => t('SBP Indexed'),
'base' => 'search_by_page_test',
'description' => t('Content to be indexed for searching in tests'),
'has_title' => TRUE,
),
'search_by_page_hidden' => array(
'name' => t('SBP Hidden'),
'base' => 'search_by_page_test',
'description' => t('Content not to be indexed for searching in tests'),
'has_title' => TRUE,
),
);
}