class ChildSandboxManager

Test class for testing the child stage.

Hierarchy

Expanded class hierarchy of ChildSandboxManager

File

core/modules/package_manager/tests/src/Unit/SandboxManagerBaseTest.php, line 148

Namespace

Drupal\Tests\package_manager\Unit
View source
class ChildSandboxManager extends SandboxManagerBase {
    public function __construct() {
    }
    
    /**
     * {@inheritdoc}
     */
    protected string $type = 'package_manager:child';

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
ChildSandboxManager::$type protected property The stage type. Overrides SandboxManagerBase::$type
ChildSandboxManager::__construct public function Overrides SandboxManagerBase::__construct
SandboxManagerBase::$lock private property The lock info for the stage.
SandboxManagerBase::$tempStore protected property The shared temp store.
SandboxManagerBase::apply public function Applies staged changes to the active directory.
SandboxManagerBase::checkOwnership final protected function Validates the ownership of stage directory.
SandboxManagerBase::claim final public function Attempts to claim the stage.
SandboxManagerBase::COMPOSER_PACKAGE_REGEX private constant The regular expression to check if a package name is a regular package.
SandboxManagerBase::COMPOSER_PLATFORM_PACKAGE_REGEX private constant The regular expression to check if a package name is a platform package.
SandboxManagerBase::computeDestroyMessage private function Returns the specific destroy message for the ID.
SandboxManagerBase::create public function Copies the active code base into the stage directory.
SandboxManagerBase::destroy public function Deletes the stage directory.
SandboxManagerBase::dispatch protected function Dispatches an event and handles any errors that it collects.
SandboxManagerBase::getFailureMarkerMessage protected function Returns the failure marker message.
SandboxManagerBase::getMetadata public function Returns a specific piece of metadata associated with this stage.
SandboxManagerBase::getPathsToExclude protected function Collects paths that Composer Stager should exclude.
SandboxManagerBase::getSandboxDirectory public function Returns the path of the directory where changes should be staged.
SandboxManagerBase::getStagingRoot private function Returns the directory where stage directories will be created.
SandboxManagerBase::getType final public function Gets the stage type.
SandboxManagerBase::isApplying final public function Checks if staged changes are being applied to the active directory.
SandboxManagerBase::isAvailable final public function Determines if the stage directory can be created.
SandboxManagerBase::markAsAvailable protected function Marks the stage as available.
SandboxManagerBase::postApply public function Performs post-apply tasks.
SandboxManagerBase::require public function Adds or updates packages in the stage directory.
SandboxManagerBase::rethrowAsStageException private function Wraps an exception in a StageException and re-throws it.
SandboxManagerBase::sandboxDirectoryExists public function Determines if the stage directory exists.
SandboxManagerBase::setMetadata public function Stores arbitrary metadata associated with this stage.
SandboxManagerBase::setNotApplying private function Returns a closure that marks this stage as no longer being applied.
SandboxManagerBase::storeDestroyInfo protected function Stores information about the stage when it is destroyed.
SandboxManagerBase::TEMPSTORE_APPLY_TIME_KEY private constant The tempstore key under which to store the time that ::apply() was called.
SandboxManagerBase::TEMPSTORE_CHANGES_APPLIED private constant The tempstore key for whether staged operations have been applied.
SandboxManagerBase::TEMPSTORE_DESTROYED_STAGES_INFO_PREFIX private constant The tempstore key for information about previously destroyed stages.
SandboxManagerBase::TEMPSTORE_LOCK_KEY final protected constant The tempstore key under which to store the locking info for this stage.
SandboxManagerBase::TEMPSTORE_METADATA_KEY final protected constant The tempstore key under which to store arbitrary metadata for this stage.
SandboxManagerBase::TEMPSTORE_STAGING_ROOT_KEY private constant The tempstore key under which to store the path of stage root directory.
SandboxManagerBase::validateRequirements protected static function Validates a set of package names.
StringTranslationTrait::$stringTranslation protected property The string translation service. 3
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language. 1

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