ProfileExtensionList.php 801 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Drupal\Core\Extension;
  3. /**
  4. * Provides a list of installation profiles.
  5. *
  6. * @internal
  7. * This class is not yet stable and therefore there are no guarantees that the
  8. * internal implementations including constructor signature and protected
  9. * properties / methods will not change over time. This will be reviewed after
  10. * https://www.drupal.org/project/drupal/issues/2940481
  11. */
  12. class ProfileExtensionList extends ExtensionList {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. protected $defaults = [
  17. 'dependencies' => [],
  18. 'install' => [],
  19. 'description' => '',
  20. 'package' => 'Other',
  21. 'version' => NULL,
  22. 'php' => DRUPAL_MINIMUM_PHP,
  23. ];
  24. /**
  25. * {@inheritdoc}
  26. */
  27. protected function getInstalledExtensionNames() {
  28. return [$this->installProfile];
  29. }
  30. }