You are here

protected function LinksWidget::appendWidgetLibrary in Facets 8

Appends widget library and relevant information for it to build array.

Parameters

array $build: Reference to build array.

1 call to LinksWidget::appendWidgetLibrary()
LinksWidget::build in src/Plugin/facets/widget/LinksWidget.php
Builds the facet widget for rendering.
1 method overrides LinksWidget::appendWidgetLibrary()
CheckboxWidget::appendWidgetLibrary in src/Plugin/facets/widget/CheckboxWidget.php
Appends widget library and relevant information for it to build array.

File

src/Plugin/facets/widget/LinksWidget.php, line 129

Class

LinksWidget
The links widget.

Namespace

Drupal\facets\Plugin\facets\widget

Code

protected function appendWidgetLibrary(array &$build) {
  $build['#attached']['library'][] = 'facets/drupal.facets.link-widget';
  $build['#attributes']['class'][] = 'js-facets-links';
}