You are here

public function Facet::getWidget in Facets 8

Returns the facet widget definition.

Return value

array An associative array with the following structure:

  • id: The widget plugin id as a string.
  • config: The widget configuration as an array.

Overrides FacetInterface::getWidget

1 call to Facet::getWidget()
Facet::getWidgetInstance in src/Entity/Facet.php
Returns the facet widget instance.

File

src/Entity/Facet.php, line 353

Class

Facet
Defines the facet configuration entity.

Namespace

Drupal\facets\Entity

Code

public function getWidget() {
  return $this->widget;
}