You are here

public function ManualCertificateMapper::processMapping in Certificate 4.x

Get the map keys that the user is eligible for.

Return value

array

Overrides CertificateMapperBase::processMapping

File

src/Plugin/certificate/CertificateMapper/ManualCertificateMapper.php, line 22

Class

ManualCertificateMapper
Plugin annotation @CertificateMapper( id = "manual", label = @Translation("Manual"), description = @Translation("Select a single certificate to award to the user"), )

Namespace

Drupal\certificate\Plugin\certificate\CertificateMapper

Code

public function processMapping(ContentEntityInterface $entity, AccountInterface $account) {
  return [
    'manual',
  ];
}