Function __global->handle_moniker_deprecation_redirect

Definitions

sources/site.php

  • Redirect to the latest moniker, if appropriate.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$zone ID_TEXT No No required parameter N/A N/A The zone
$moniker_row array No No required parameter N/A N/A The current moniker row
$redirect_if_non_canonical boolean No No required parameter N/A N/A Do a redirect if we're not on the canonical URL
$is_complete_url_under_zone boolean No No False N/A N/A Is the moniker representing the full URL (as opposed to being underneath a module)?

Preview

Code (PHP)

/**
 * Redirect to the latest moniker, if appropriate.
 *
 * @param  ID_TEXT $zone The zone
 * @param  array $moniker_row The current moniker row
 * @param  boolean $redirect_if_non_canonical Do a redirect if we're not on the canonical URL
 * @param  boolean $is_complete_url_under_zone Is the moniker representing the full URL (as opposed to being underneath a module)?
 */

function handle_moniker_deprecation_redirect(string $zone, array $moniker_row, bool $redirect_if_non_canonical, bool $is_complete_url_under_zone = false)