You are here

function search_by_page_stored_page_content in Search by Page 8

Same name and namespace in other branches
  1. 7 search_by_page.module \search_by_page_stored_page_content()

Returns the stored content from the last indexing of a page.

Parameters

string $module: Name of the module for the path.

int $modid: ID of this path within this module.

int $environment: ID of the environment.

Return value

string The stored content from last indexing of the page.

3 calls to search_by_page_stored_page_content()
search_by_page_nodes_search_by_page_details in search_by_page_nodes/search_by_page_nodes.module
Implements Search by Page hook_search_by_page_details().
search_by_page_paths_search_by_page_details in search_by_page_paths/search_by_page_paths.module
Implements Search by Page hook_search_by_page_details().
search_by_page_users_search_by_page_details in search_by_page_users/search_by_page_users.module
Implements Search by Page hook_search_by_page_details().

File

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

Code

function search_by_page_stored_page_content($module, $modid, $environment) {
  return \Drupal::database()
    ->select('search_by_page_path', 'p')
    ->fields('p', [
    'page_data',
  ])
    ->condition('from_module', $module)
    ->condition('modid', $modid)
    ->condition('environment', $environment)
    ->execute()
    ->fetchField();
}