Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Extension / ProfileExtensionList.php
diff --git a/web/core/lib/Drupal/Core/Extension/ProfileExtensionList.php b/web/core/lib/Drupal/Core/Extension/ProfileExtensionList.php
new file mode 100644 (file)
index 0000000..4f73f9c
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+namespace Drupal\Core\Extension;
+
+/**
+ * Provides a list of installation profiles.
+ */
+class ProfileExtensionList extends ExtensionList {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $defaults = [
+    'dependencies' => [],
+    'install' => [],
+    'description' => '',
+    'package' => 'Other',
+    'version' => NULL,
+    'php' => DRUPAL_MINIMUM_PHP,
+  ];
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getInstalledExtensionNames() {
+    return [$this->installProfile];
+  }
+
+}