You are here

protected function ActionForm::displayArraysEquivalent in Ubercart 8.4

@todo Replace with == operator?

1 call to ActionForm::displayArraysEquivalent()
ActionForm::buildJsFileDisplay in uc_file/src/Form/ActionForm.php
Shows all possible files in selectable list.

File

uc_file/src/Form/ActionForm.php, line 313

Class

ActionForm
Performs file action (upload, delete, hooked in actions).

Namespace

Drupal\uc_file\Form

Code

protected function displayArraysEquivalent($recur, $no_recur) {

  // Different sizes.
  if (count($recur) != count($no_recur)) {
    return FALSE;
  }

  // Check the elements.
  for ($i = 0; $i < count($recur); $i++) {
    if ($recur[$i] != $no_recur[$i]) {
      return FALSE;
    }
  }
  return TRUE;
}