You are here

protected function ViewsTestField::isActiveForRow in Search API 8

Determines whether this field is active for the given row.

To be able to test retrieval of properties from different types of (base) entities, this implementation always return TRUE.

Parameters

\Drupal\views\ResultRow $row: The result row.

Return value

bool TRUE if this field handler might produce output for the given row, FALSE otherwise.

Overrides SearchApiFieldTrait::isActiveForRow

See also

\Drupal\search_api\Plugin\views\field\SearchApiFieldTrait::isActiveForRow()

File

tests/src/Kernel/ViewsTestField.php, line 38

Class

ViewsTestField
Provides a field plugin for testing.

Namespace

Drupal\Tests\search_api\Kernel

Code

protected function isActiveForRow(ResultRow $row) {
  return TRUE;
}