You are here

protected function ConfigActionsList::isSequential in Config Actions 8

Return True if array is Sequential

Parameters

array $arr:

Return value

bool

1 call to ConfigActionsList::isSequential()
ConfigActionsList::detect in src/Plugin/ConfigActionsSource/ConfigActionsList.php
Determine if $source is valid for the specific plugin.

File

src/Plugin/ConfigActionsSource/ConfigActionsList.php, line 22

Class

ConfigActionsList
Plugin for handling a list of source locations.

Namespace

Drupal\config_actions\Plugin\ConfigActionsSource

Code

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