You are here

public function UnsavedIndexConfiguration::bundle in Search API 8

Gets the bundle of the entity.

Return value

string The bundle of the entity. Defaults to the entity type ID if the entity type does not make use of different bundles.

Overrides EntityInterface::bundle

File

src/UnsavedIndexConfiguration.php, line 789

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function bundle() {
  return $this->entity
    ->bundle();
}