You are here

public function SearchApiHandlerTrait::getEntityType in Search API 8

Determines the entity type used by this handler.

If this handler uses a relationship, the base class of the relationship is taken into account.

Return value

string The machine name of the entity type.

See also

\Drupal\views\Plugin\views\HandlerBase::getEntityType()

1 call to SearchApiHandlerTrait::getEntityType()
SearchApiEntityField::getEntityFieldRenderer in src/Plugin/views/field/SearchApiEntityField.php
Returns the entity field renderer.
1 method overrides SearchApiHandlerTrait::getEntityType()
SearchApiBulkForm::getEntityType in src/Plugin/views/field/SearchApiBulkForm.php
Determines the entity type used by this handler.

File

src/Plugin/views/SearchApiHandlerTrait.php, line 33

Class

SearchApiHandlerTrait
Provides a trait to use for Search API Views handlers.

Namespace

Drupal\search_api\Plugin\views

Code

public function getEntityType() {
  return $this->definition['entity_type'] ?? parent::getEntityType();
}