function InfoParserUnitTest::providerValidLifecycle
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php \Drupal\Tests\Core\Extension\InfoParserUnitTest::providerValidLifecycle()
- 11.x core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php \Drupal\Tests\Core\Extension\InfoParserUnitTest::providerValidLifecycle()
Data provider for testValidLifecycle().
File
-
core/
tests/ Drupal/ Tests/ Core/ Extension/ InfoParserUnitTest.php, line 387
Class
- InfoParserUnitTest
- Tests InfoParser class and exception.
Namespace
Drupal\Tests\Core\ExtensionCode
public static function providerValidLifecycle() {
return [
'empty' => [
'',
ExtensionLifecycle::STABLE,
],
'experimental' => [
ExtensionLifecycle::EXPERIMENTAL,
ExtensionLifecycle::EXPERIMENTAL,
],
'stable' => [
ExtensionLifecycle::STABLE,
ExtensionLifecycle::STABLE,
],
'deprecated' => [
ExtensionLifecycle::DEPRECATED,
ExtensionLifecycle::DEPRECATED,
],
'obsolete' => [
ExtensionLifecycle::OBSOLETE,
ExtensionLifecycle::OBSOLETE,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.