function SettingsEditor::isArrayIndex
Checks whether the token is a valid array index (a number or string).
Parameters
int $type: The token type.
Return value
bool TRUE if this token represents a number or a string.
See also
1 call to SettingsEditor::isArrayIndex()
- SettingsEditor::rewrite in core/lib/ Drupal/ Core/ Site/ SettingsEditor.php 
- Replaces values in settings.php with values in the submitted array.
File
- 
              core/lib/ Drupal/ Core/ Site/ SettingsEditor.php, line 229 
Class
- SettingsEditor
- Generates settings.php files for Drupal installations.
Namespace
Drupal\Core\SiteCode
private static function isArrayIndex(int $type) : bool {
  $is_integer = $type === T_LNUMBER;
  $is_float = $type === T_DNUMBER;
  $is_string = $type === T_CONSTANT_ENCAPSED_STRING;
  return $is_integer || $is_float || $is_string;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
