public function FacetInterface::setWidget in Facets 8
Sets the facet widget definition.
Parameters
string $id: The widget plugin id.
array $configuration: (optional) The facet widget plugin configuration. If missed, the default plugin configuration will be filled.
1 method overrides FacetInterface::setWidget()
- Facet::setWidget in src/
Entity/ Facet.php - Sets the facet widget definition.
File
- src/
FacetInterface.php, line 21
Class
- FacetInterface
- The facet entity.
Namespace
Drupal\facetsCode
public function setWidget($id, array $configuration = NULL);