You are here

protected function ConfigActionsPluginBase::isSequential in Config Actions 8

Return True if array is Sequential

Parameters

array $arr:

Return value

bool

1 call to ConfigActionsPluginBase::isSequential()
ConfigActionsPluginBase::parseOptions in src/ConfigActionsPluginBase.php
Parse any property references in the options.

File

src/ConfigActionsPluginBase.php, line 270

Class

ConfigActionsPluginBase
Base class for config_actions plugins.

Namespace

Drupal\config_actions

Code

protected function isSequential($arr) {
  if (array() === $arr) {
    return false;
  }
  return is_array($arr) && array_keys($arr) == range(0, count($arr) - 1);
}