private static function AddUpdateForm::checkPaths in Optimizely 8.3
Ensure that for an array of paths, each path starts with a slash.
2 calls to AddUpdateForm::checkPaths()
- AddUpdateForm::submitForm in src/
Form/ AddUpdateForm.php - Form submission handler.
- AddUpdateForm::validateForm in src/
Form/ AddUpdateForm.php - Check to make sure the project code is unique except for the default entry which uses the account ID but should support an additional entry to allow for custom settings.
File
- src/
Form/ AddUpdateForm.php, line 331
Class
- AddUpdateForm
- Implements the form for the Add Projects page.
Namespace
Drupal\optimizely\FormCode
private static function checkPaths(&$path_array) {
foreach ($path_array as &$path) {
$path = self::checkPathLeadingSlash($path);
}
}