Function __global->get_form_field_tabindex

Definitions

sources/form_templates.php

  • Helper function for tab-index linearisation (serves as a filter).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$tabindex ?integer No No Null N/A N/A Requested tab-index (null: no specific request)

Returns

  • Used tab-index
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Helper function for tab-index linearisation (serves as a filter).
 *
 * @param  ?integer $tabindex Requested tab-index (null: no specific request)
 * @return integer Used tab-index
 */

function get_form_field_tabindex(?int $tabindex = null) : int