private function AuthorizationProfileForm::extractArrayByName in Authorization 8
Transform the array keyed by row to a separate array for each consumer.
Parameters
array $data: Source data from form.
string $name: Which provisioner to filter by.
Return value
array Transformed array.
1 call to AuthorizationProfileForm::extractArrayByName()
- AuthorizationProfileForm::submitForm in src/
Form/ AuthorizationProfileForm.php - This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
File
- src/
Form/ AuthorizationProfileForm.php, line 656
Class
- AuthorizationProfileForm
- Authorization profile form.
Namespace
Drupal\authorization\FormCode
private function extractArrayByName(array $data, $name) : array {
$mapping = [];
foreach ($data as $value) {
if (isset($value[$name])) {
$mapping[] = $value[$name];
}
}
return $mapping;
}