function Extension::isExperimental

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::isExperimental()
  2. 11.x core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::isExperimental()

Checks if an extension is marked as experimental.

Return value

bool TRUE if an extension is marked as experimental, FALSE otherwise.

1 call to Extension::isExperimental()
DatabaseDriver::isExperimental in core/lib/Drupal/Core/Extension/DatabaseDriver.php
Checks if an extension is marked as experimental.
1 method overrides Extension::isExperimental()
DatabaseDriver::isExperimental in core/lib/Drupal/Core/Extension/DatabaseDriver.php
Checks if an extension is marked as experimental.

File

core/lib/Drupal/Core/Extension/Extension.php, line 225

Class

Extension
Defines an extension (file) object.

Namespace

Drupal\Core\Extension

Code

public function isExperimental() : bool {
    return isset($this->info[ExtensionLifecycle::LIFECYCLE_IDENTIFIER]) && $this->info[ExtensionLifecycle::LIFECYCLE_IDENTIFIER] === ExtensionLifecycle::EXPERIMENTAL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.