You are here

public function LingotekEntity::getBundle in Lingotek Translation 7.7

Return the bundle for the entity

Return value

string The bundle associated with this object

File

lib/Drupal/lingotek/LingotekEntity.php, line 361
Defines LingotekEntity.

Class

LingotekEntity
A class wrapper for Lingotek-specific behavior on nodes.

Code

public function getBundle() {
  list(, , $bundle) = lingotek_entity_extract_ids($this->entity_type, $this->entity);
  return $bundle;
}