Skip to content
Snippets Groups Projects

Issue #3250585: Use lifecycle: experimental instead of the current experimental: true in the .info.yml-files

Closed Issue #3250585: Use lifecycle: experimental instead of the current experimental: true in the .info.yml-files
Closed spokje requested to merge issue/drupal-3250585:3250585-use-lifecycle-experimental into 9.4.x
12 files
+ 241
54
Compare changes
  • Side-by-side
  • Inline
Files
12
@@ -192,4 +192,21 @@ public function __wakeup() {
$this->root = $container && $container->hasParameter('app.root') ? $container->getParameter('app.root') : DRUPAL_ROOT;
}
/**
* Checks if an extension is marked as experimental.
*
* @return bool
* TRUE if an extension is marked as experimental, FALSE otherwise.
*/
public function isExperimental(): bool {
// Currently, this function checks for both the key/value pairs
// 'experimental: true' and 'lifecycle: experimental' to determine if an
// extension is marked as experimental.
// @todo Remove the check for 'experimental: true' as part of
// https://www.drupal.org/node/3250342
return (isset($this->info['experimental']) && $this->info['experimental'])
|| (isset($this->info[ExtensionLifecycle::LIFECYCLE_IDENTIFIER])
&& $this->info[ExtensionLifecycle::LIFECYCLE_IDENTIFIER] === ExtensionLifecycle::EXPERIMENTAL);
}
}
Loading