public function CoreViewsContextualFilter::getFields in Core Views Facets 8
Returns an array of fields that are defined on the facet source.
This returns an array of fields that are defined on the source. This array is keyed by the field's machine name and has values of the field's label.
Return value
array An array of available fields.
Overrides FacetSourcePluginBase::getFields
3 calls to CoreViewsContextualFilter::getFields()
- CoreViewsContextualFilter::buildConfigurationForm in src/
Plugin/ facets/ facet_source/ CoreViewsContextualFilter.php - Form constructor.
- CoreViewsContextualFilter::fillFacetsWithResults in src/
Plugin/ facets/ facet_source/ CoreViewsContextualFilter.php - CoreViewsContextualFilter::submitConfigurationForm in src/
Plugin/ facets/ facet_source/ CoreViewsContextualFilter.php - Form submission handler.
File
- src/
Plugin/ facets/ facet_source/ CoreViewsContextualFilter.php, line 227
Class
- CoreViewsContextualFilter
- Represents a facet source of the core views with contextual filters.
Namespace
Drupal\core_views_facets\Plugin\facets\facet_sourceCode
public function getFields() {
$arguments = [];
foreach ($this->view
->getHandlers('argument', $this->view->current_display) as $argument_id => $argument) {
$arguments[$argument_id] = $this->view->display_handler
->getHandler('argument', $argument_id);
}
return $arguments;
}