class ActiveFixtureManipulator

Same name and namespace in other branches
  1. 11.x core/modules/package_manager/tests/modules/fixture_manipulator/src/ActiveFixtureManipulator.php \Drupal\fixture_manipulator\ActiveFixtureManipulator

A fixture manipulator for the active directory.

Hierarchy

Expanded class hierarchy of ActiveFixtureManipulator

15 files declare their use of ActiveFixtureManipulator
AllowedScaffoldPackagesValidatorTest.php in core/modules/package_manager/tests/src/Kernel/AllowedScaffoldPackagesValidatorTest.php
ChangeLoggerTest.php in core/modules/package_manager/tests/src/Kernel/ChangeLoggerTest.php
ComposerInspectorTest.php in core/modules/package_manager/tests/src/Kernel/ComposerInspectorTest.php
ComposerPatchesValidatorTest.php in core/modules/package_manager/tests/src/Kernel/ComposerPatchesValidatorTest.php
ComposerPluginsValidatorInsecureTest.php in core/modules/package_manager/tests/src/Kernel/ComposerPluginsValidatorInsecureTest.php

... See full list

File

core/modules/package_manager/tests/modules/fixture_manipulator/src/ActiveFixtureManipulator.php, line 12

Namespace

Drupal\fixture_manipulator
View source
final class ActiveFixtureManipulator extends FixtureManipulator {
  
  /**
   * {@inheritdoc}
   */
  public function commitChanges(?string $dir = NULL, bool $validate_composer = FALSE) : self {
    if ($dir) {
      throw new \UnexpectedValueException("{$dir} cannot be specific for a ActiveFixtureManipulator instance");
    }
    $dir = \Drupal::service(PathLocator::class)->getProjectRoot();
    parent::doCommitChanges($dir);
    return $this;
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.