class AllowDirectWrite
Identifies sandbox managers which can operate on the running code base.
Package Manager normally creates and operates on a fully separate, sandboxed copy of the site. This is pretty safe, but not always necessary for certain kinds of operations (e.g., adding a new module to the site). SandboxManagerBase subclasses with this attribute are allowed to skip the sandboxing and operate directly on the live site, but ONLY if the `package_manager_allow_direct_write` setting is set to TRUE.
Attributes
#[\Attribute(\Attribute::TARGET_CLASS)]
Hierarchy
- class \Drupal\package_manager\Attribute\AllowDirectWrite
Expanded class hierarchy of AllowDirectWrite
See also
\Drupal\package_manager\SandboxManagerBase::isDirectWrite()
3 files declare their use of AllowDirectWrite
- ApiController.php in core/
modules/ package_manager/ tests/ modules/ package_manager_test_api/ src/ ApiController.php - PackageManagerKernelTestBase.php in core/
modules/ package_manager/ tests/ src/ Kernel/ PackageManagerKernelTestBase.php - SandboxManagerBase.php in core/
modules/ package_manager/ src/ SandboxManagerBase.php
File
-
core/
modules/ package_manager/ src/ Attribute/ AllowDirectWrite.php, line 19
Namespace
Drupal\package_manager\AttributeView source
final class AllowDirectWrite {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.