public function SearchApiBulkForm::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.
Overrides SearchApiHandlerTrait::getEntityType
See also
\Drupal\views\Plugin\views\HandlerBase::getEntityType()
File
- src/
Plugin/ views/ field/ SearchApiBulkForm.php, line 54
Class
- SearchApiBulkForm
- Defines an actions-based bulk operation form element.
Namespace
Drupal\search_api\Plugin\views\fieldCode
public function getEntityType() {
// The standard BulkForm only works with a single entity type, but results
// returned by Search API might contain entities of many different entity
// types, and even datasources that are not based on entities.
// Override the parent method as BulkForm::init() will call this and will
// complain that a valid entity type cannot be retrieved.
// @see \Drupal\views\Plugin\views\field\BulkForm::init()
// @see \Drupal\views\Plugin\views\HandlerBase::getEntityType()
return NULL;
}