You are here

protected function CheckboxWidget::appendWidgetLibrary in Facets 8

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

Parameters

array $build: Reference to build array.

Overrides LinksWidget::appendWidgetLibrary

File

src/Plugin/facets/widget/CheckboxWidget.php, line 19

Class

CheckboxWidget
The checkbox / radios widget.

Namespace

Drupal\facets\Plugin\facets\widget

Code

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