Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Merge requests
!564
Issue
#3304365
: Do not check excluded folders for symlinks
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3304365
: Do not check excluded folders for symlinks
issue/automatic_updates-3304365:3304365-do-not-check
into
8.x-2.x
Overview
14
Commits
27
Pipelines
1
Changes
3
Merged
Adam G-H
requested to merge
issue/automatic_updates-3304365:3304365-do-not-check
into
8.x-2.x
2 years ago
Overview
9
Commits
27
Pipelines
1
Changes
3
Expand
0
0
Merge request reports
Viewing commit
ec088ad7
Prev
Next
Show latest version
3 files
+
24
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
ec088ad7
Pass exclusions to precondition
· ec088ad7
Adam G-H
authored
2 years ago
package_manager/src/Event/ExcludedPathsTrait.php
+
14
−
4
Options
@@ -2,6 +2,8 @@
namespace
Drupal\package_manager\Event
;
use
PhpTuf\ComposerStager\Infrastructure\Value\PathList\PathList
;
/**
* Common functionality for events which can collect excluded paths.
*/
@@ -40,11 +42,19 @@ trait ExcludedPathsTrait {
/**
* Returns the paths to exclude from the current operation.
*
* @return string[]
* The paths to exclude.
* @param bool $return_as_object
* (optional) If TRUE, the excluded paths will be returned as an instance
* of \PhpTuf\ComposerStager\Domain\Value\PathList\PathListInterface.
* Defaults to FALSE.
*
* @return string[]|\PhpTuf\ComposerStager\Domain\Value\PathList\PathListInterface
* The paths to exclude, as an instance of
* \PhpTuf\ComposerStager\Domain\Value\PathList\PathListInterface if
* $as_path_list is TRUE, or an array of strings if FALSE.
*/
public
function
getExcludedPaths
():
array
{
return
array_unique
(
$this
->
excludedPaths
);
public
function
getExcludedPaths
(
bool
$return_as_object
=
FALSE
)
{
$excluded_paths
=
array_unique
(
$this
->
excludedPaths
);
return
$return_as_object
?
new
PathList
(
$excluded_paths
)
:
$excluded_paths
;
}
}
Loading