public function ConsumerPluginBase::filterProposals in Authorization 8
Consumer-side filtering.
Parameters
array $proposals: Proposals left over after provider filtering.
array $mapping: What the proposals should be mapped against in the consumer.
Return value
array Remaining, valid proposals.
Overrides ConsumerInterface::filterProposals
1 method overrides ConsumerPluginBase::filterProposals()
- DrupalRolesConsumer::filterProposals in authorization_drupal_roles/
src/ Plugin/ authorization/ Consumer/ DrupalRolesConsumer.php - Consumer-side filtering.
File
- src/
Consumer/ ConsumerPluginBase.php, line 38
Class
- ConsumerPluginBase
- Base class for Authorization consumer plugins.
Namespace
Drupal\authorization\ConsumerCode
public function filterProposals(array $proposals, array $mapping) : array {
if (!empty($proposals)) {
$property = array_pop($mapping);
return [
$property => $property,
];
}
return [];
}