public function TestEntity::bundle

Overrides Drupal\Core\Entity\Entity::bundle().

Overrides Entity::bundle

File

drupal/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Core/Entity/TestEntity.php, line 83
Contains Drupal\field_test\Plugin\Core\Entity\TestEntity.

Class

TestEntity
Test entity class.

Namespace

Drupal\field_test\Plugin\Core\Entity

Code

public function bundle() {
  return !empty($this->fttype) ? $this->fttype : $this
    ->entityType();
}