private static function AddUpdateForm::checkPaths in Optimizely 8
Ensure that for an array of paths, each path starts with a slash.
2 calls to AddUpdateForm::checkPaths()
- AddUpdateForm::submitForm in src/
AddUpdateForm.php - Form submission handler.
- AddUpdateForm::validateForm in src/
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/
AddUpdateForm.php, line 327
Class
- AddUpdateForm
- Implements the form for the Add Projects page.
Namespace
Drupal\optimizelyCode
private static function checkPaths(&$path_array) {
foreach ($path_array as &$path) {
$path = self::checkPathLeadingSlash($path);
}
}