You are here

public function Task::getType in Search API 8

Retrieves the task type.

Return value

string The task type.

Overrides TaskInterface::getType

File

src/Entity/Task.php, line 83

Class

Task
Defines the Search API task entity class.

Namespace

Drupal\search_api\Entity

Code

public function getType() {
  return $this
    ->get('type')[0]->value;
}