You are here

protected function EntityFieldRenderer::getRenderableFieldIds in Search API 8

Returns a list of names of entity fields to be rendered.

Return value

string[] An associative array of views fields.

Overrides EntityFieldRenderer::getRenderableFieldIds

File

src/Plugin/views/EntityFieldRenderer.php, line 120

Class

EntityFieldRenderer
Renders entity fields.

Namespace

Drupal\search_api\Plugin\views

Code

protected function getRenderableFieldIds() {
  $field_ids = [];
  foreach ($this->view->field as $field_id => $field) {
    if ($this
      ->compatibleWithField($field)) {
      $field_ids[] = $field_id;
    }
  }
  return $field_ids;
}