Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
queue_order
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
queue_order
Merge requests
!2
Issue
#3224274
: Issue with config override
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Issue
#3224274
: Issue with config override
issue/queue_order-3224274:3224274-stable-sorting-in
into
2.0.x
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Issue #3224274: Issue with config override
Oleh Vehera
requested to merge
issue/queue_order-3224274:3224274-stable-sorting-in
into
2.0.x
Oct 14, 2021
Overview
0
Commits
1
Pipelines
0
Changes
3
0
0
Merge request reports
Compare
2.0.x
version 2
7184e169
Oct 14, 2021
version 1
17df5160
Oct 14, 2021
2.0.x (base)
and
latest version
latest version
7184e169
1 commit,
Oct 14, 2021
version 2
7184e169
1 commit,
Oct 14, 2021
version 1
17df5160
1 commit,
Oct 14, 2021
3 files
+
9
−
21
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
src/Queue/QueueWorkerManager.php
+
4
−
4
View file @ 7184e169
Edit in single-file editor
Open in Web IDE
Show full file
@@ -18,9 +18,9 @@ use Drupal\Core\Queue\QueueWorkerManager as CoreQueueWorkerManager;
class
QueueWorkerManager
extends
CoreQueueWorkerManager
{
/**
*
The module config
.
*
Config factory
.
*
* @var \Drupal\Core\Config\
ImmutableConfig
* @var \Drupal\Core\Config\
ConfigFactoryInterface
*/
protected
$config
;
@@ -39,14 +39,14 @@ class QueueWorkerManager extends CoreQueueWorkerManager {
*/
public
function
__construct
(
\Traversable
$namespaces
,
CacheBackendInterface
$cache_backend
,
ModuleHandlerInterface
$module_handler
,
ConfigFactoryInterface
$config
)
{
parent
::
__construct
(
$namespaces
,
$cache_backend
,
$module_handler
);
$this
->
config
=
$config
->
get
(
'queue_order.settings'
)
;
$this
->
config
=
$config
;
}
/**
* {@inheritdoc}
*/
public
function
getDefinitions
()
{
return
self
::
sortDefinitions
(
parent
::
getDefinitions
(),
$this
->
config
->
get
(
'order'
)
?:
[]);
return
self
::
sortDefinitions
(
parent
::
getDefinitions
(),
$this
->
config
->
get
(
'
queue_order.settings'
)
->
get
(
'
order'
)
?:
[]);
}
/**
Loading