You are here

public static function LingotekProfile::getIdByEntity in Lingotek Translation 7.7

File

lib/Drupal/lingotek/LingotekProfile.php, line 135
Defines LingotekProfile

Class

LingotekProfile
A class wrapper for Lingotek Profiles

Code

public static function getIdByEntity($entity_type, $entity) {
  $profile = self::loadByEntity($entity_type, $entity);
  return $profile
    ->getId();
}