You are here

public function CertificateMapping::isMatch in Certificate 4.x

Check if this mapping is set to a specific key value pair

Parameters

string $map_key:

string $map_value:

File

src/Entity/CertificateMapping.php, line 130

Class

CertificateMapping
Defines the credit mapping type entity class.

Namespace

Drupal\certificate\Entity

Code

public function isMatch($map_key, $map_value) {
  $isKey = $this
    ->get('map_key')->value == $map_key;
  $isValue = $this
    ->get('map_value')->value == $map_value;
  return $isKey && $isValue;
}