You are here

function search_by_page_list_environments in Search by Page 8

Same name and namespace in other branches
  1. 6 search_by_page.module \search_by_page_list_environments()
  2. 7 search_by_page.module \search_by_page_list_environments()

Returns a list of the currently-defined environment IDs.

Return value

Array of environment IDs.

11 calls to search_by_page_list_environments()
SearchByPageEnvironmentTest::setUp in tests/src/Functional/SearchByPageEnvironmentTest.php
SearchByPageTesterTest::setUpEnvironments in tests/src/Functional/SearchByPageTesterTest.php
Creates two environments for Search by Page.
search_by_page_admin_overview in ./search_by_page.module
Returns the admin overview page for module configuration.
search_by_page_admin_settings in ./search_by_page.module
Returns the admin settings page for a single search environment.
search_by_page_block_info in ./search_by_page.module
Implements hook_block_info().

... See full list

File

./search_by_page.module, line 1662
Main module file for Drupal module Search by Page.

Code

function search_by_page_list_environments() {
  $stuff = \Drupal::state()
    ->get('search_by_page_settings', []);
  return array_keys($stuff);
}