Function Hook_health_check_marketing_seo_robotstxt->robots_parse

Definitions

sources/hooks/systems/health_checks/marketing_seo_robotstxt.php

  • Parse our domain's robots.txt.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$user_agent ?string required parameter N/A N/A The user-agent (null: N/A)
$error_messages boolean False N/A N/A Show error messages for any parsing issues

Return

  • List of rules (null: could not parse)
  • Type: ?array
  • Set: N/A
  • Range: N/A