public static function ConfigActionsTransform::isAssoc in Config Actions 8
Return TRUE if arr is an associative array.
Parameters
mixed $arr:
Return value
bool
File
- src/
ConfigActionsTransform.php, line 237
Class
- ConfigActionsTransform
- Perform transformations on data needed for config_actions plugins
Namespace
Drupal\config_actionsCode
public static function isAssoc($arr) {
if (!is_array($arr) || array() === $arr) {
return FALSE;
}
return array_keys($arr) !== range(0, count($arr) - 1);
}