trait FixtureManipulatorTrait

A trait for common fixture manipulator functions.

Hierarchy

1 file declares its use of FixtureManipulatorTrait
PackageManagerKernelTestBase.php in core/modules/package_manager/tests/src/Kernel/PackageManagerKernelTestBase.php

File

core/modules/package_manager/tests/src/Traits/FixtureManipulatorTrait.php, line 12

Namespace

Drupal\Tests\package_manager\Traits
View source
trait FixtureManipulatorTrait {
    
    /**
     * Gets the stage fixture manipulator service.
     *
     * @return \Drupal\fixture_manipulator\StageFixtureManipulator|object|null
     *   The stage fixture manipulator service.
     */
    protected function getStageFixtureManipulator() {
        return $this->container
            ->get(StageFixtureManipulator::class);
    }

}

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