You are here

protected function VisibilityChecker::filterSelectedValues in Image Lazyloader 8

Filters an array of selected checkbox values.

@todo Ideally we would trust the stored data in config.

1 call to VisibilityChecker::filterSelectedValues()
VisibilityChecker::isValidImageStyle in src/VisibilityChecker.php
Asserts if a uri is a valid image style.

File

src/VisibilityChecker.php, line 127

Class

VisibilityChecker
Class VisibilityChecker.

Namespace

Drupal\lazyloader

Code

protected function filterSelectedValues($values) {

  // Filter out deselected values.
  foreach ((array) $values as $key => $value) {
    if (!$value) {
      unset($values[$key]);
    }
  }
  return $values;
}