You are here

private static function PrettyElement::setValues in Pretty Checkbox Radio 8

Modify an element to change it to pretty element.

Parameters

array $element: The element to be modify.

Return value

array The element modified.

1 call to PrettyElement::setValues()
PrettyElement::process in src/PrettyElement.php
Processes checkboxes and radios form element.

File

src/PrettyElement.php, line 49

Class

PrettyElement
Provides methods for Drupal render pretty elements.

Namespace

Drupal\pcr

Code

private static function setValues(array $element) {
  $element['#theme'] = 'elements__pretty_options';
  $element['#title_display'] = 'hidden';
  $element['#attached']['library'][] = 'pcr/pretty_elements';
  return $element;
}