You are here

public function OpenlayersService::multipleEmpty in Openlayers 8.4

Check if an array has all values empty.

Parameters

array $array: The array to check.

Return value

bool The bool result.

File

src/OpenlayersService.php, line 415

Class

OpenlayersService
Provides an OpenlayersService class.

Namespace

Drupal\openlayers

Code

public function multipleEmpty(array $array) {
  foreach ($array as $value) {
    if (empty($value)) {
      continue;
    }
    else {
      return FALSE;
    }
  }
  return TRUE;
}