Function Hook_sitemap_content->_get_page_link_id

Definitions

sources/sitemap.php

  • Get a content ID via a page-link.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$page_link ID_TEXT No No required parameter N/A N/A The page-link

Returns

  • The ID (null: unknown)
  • Type: ?ID_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a content ID via a page-link.
 *
 * @param  ID_TEXT $page_link The page-link
 * @return ?ID_TEXT The ID (null: unknown)
 */

protected function _get_page_link_id(string $page_link) : ?string