protected function ContentSelectForm::caseArraySearch in Drupal-to-Drupal data migration 8.3
Case-insensitively search for a value in an array.
Parameters
$value:
$array:
1 call to ContentSelectForm::caseArraySearch()
- ContentSelectForm::buildForm in migrate_d2d_ui/
src/ Form/ ContentSelectForm.php - Form constructor.
File
- migrate_d2d_ui/
src/ Form/ ContentSelectForm.php, line 143
Class
- ContentSelectForm
- Simple wizard step form.
Namespace
Drupal\migrate_d2d_ui\FormCode
protected function caseArraySearch($needle, $haystack) {
foreach ($haystack as $key => $value) {
if (!strcasecmp($needle, $value)) {
return $key;
}
}
return FALSE;
}