FeaturesAssignmentDependency.php 638 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Drupal\features\Plugin\FeaturesAssignment;
  3. use Drupal\features\FeaturesAssignmentMethodBase;
  4. /**
  5. * Class for assigning configuration to packages based on configuration
  6. * dependencies.
  7. *
  8. * @Plugin(
  9. * id = "dependency",
  10. * weight = 15,
  11. * name = @Translation("Dependency"),
  12. * description = @Translation("Add to packages configuration dependent on items already in that package."),
  13. * )
  14. */
  15. class FeaturesAssignmentDependency extends FeaturesAssignmentMethodBase {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function assignPackages($force = FALSE) {
  20. $this->featuresManager->assignConfigDependents();
  21. }
  22. }