You are here

public function TestCertificateMapper::getMapKeys in Certificate 4.x

Get a list of map keys.

Return value

array

Overrides CertificateMapperBase::getMapKeys

File

modules/certificate_test/src/Plugin/certificate/CertificateMapper/TestCertificateMapper.php, line 18

Class

TestCertificateMapper
Plugin annotation @CertificateMapper( id = "firstletter", label = @Translation("Test mapper"), description = @Translation("Map based on first letter of username"), )

Namespace

Drupal\certificate_test\Plugin\certificate\CertificateMapper

Code

public function getMapKeys() {
  return array_combine(range('a', 'z'), range('A', 'Z'));
}