Function Hook_task_find_orphaned_content_lang_strings->run

Definitions

sources/hooks/systems/tasks/find_orphaned_content_lang_strings.php

  • Run the task hook.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$table ?string No No Null N/A N/A The table to limit to (null: no limit)
$fix boolean No No True N/A N/A Whether to fix issues

Returns

  • A tuple of at least 2: Return mime-type, content (either Tempcode, or a string, or a filename and file-path pair to a temporary file), map of HTTP headers if transferring immediately, map of ini_set commands if transferring immediately (null: show standard success message)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Run the task hook.
 *
 * @param  ?string $table The table to limit to (null: no limit)
 * @param  boolean $fix Whether to fix issues
 * @return ?array A tuple of at least 2: Return mime-type, content (either Tempcode, or a string, or a filename and file-path pair to a temporary file), map of HTTP headers if transferring immediately, map of ini_set commands if transferring immediately (null: show standard success message)
 */

public function run(?string $table = null, bool $fix = true) : ?array