You are here

public static function SettingsHelper::isValidCdfVersion in Acquia Lift Connector 8.4

Is a valid cdf version.

Parameters

string: version to compare

Return value

boolean True if valid, false otherwise.

1 call to SettingsHelper::isValidCdfVersion()
PageContext::setContextAdvanced in src/Service/Context/PageContext.php
Set page context - advanced.

File

src/Service/Helper/SettingsHelper.php, line 150

Class

SettingsHelper
Defines the Settings Helper class.

Namespace

Drupal\acquia_lift\Service\Helper

Code

public static function isValidCdfVersion($version) {
  $valid_versions = [
    1,
    2,
  ];
  return in_array($version, $valid_versions);
}