Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
8eda4f54
Commit
8eda4f54
authored
1 year ago
by
Eric Bremner
Committed by
Kevin Paxman
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-5954: coding standards
parent
eca4a774
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!358
ISTWCMS-5954: add fieldable path
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
uw_cfg_common.install
+10
-4
10 additions, 4 deletions
uw_cfg_common.install
with
10 additions
and
4 deletions
uw_cfg_common.install
+
10
−
4
View file @
8eda4f54
...
...
@@ -748,7 +748,7 @@ function uw_cfg_common_update_9108(&$sandbox) {
// The or condition for the query.
$group
=
$query
->
orConditionGroup
();
// The number of nodes per batch
// The number of nodes per batch
.
$nodes_per_batch
=
50
;
// Get the content types to batch.
...
...
@@ -843,7 +843,13 @@ function uw_cfg_common_update_9108(&$sandbox) {
$sandbox
[
'processed'
]
+=
count
(
$nids
);
// Set the message to display.
$message
=
t
(
'Processing nodes of - @p/@t.'
,
[
'@p'
=>
$sandbox
[
'processed'
],
'@t'
=>
$sandbox
[
'total'
]]);
$message
=
t
(
'Processing nodes of - @p/@t.'
,
[
'@p'
=>
$sandbox
[
'processed'
],
'@t'
=>
$sandbox
[
'total'
]
]
);
// If we are done, then complete the batching.
if
(
$sandbox
[
'processed'
]
>=
$sandbox
[
'total'
])
{
...
...
@@ -853,7 +859,7 @@ function uw_cfg_common_update_9108(&$sandbox) {
}
// Update the finished, when done processed / total will be 1.
$sandbox
[
'#finished'
]
=
(
$sandbox
[
'processed'
]
/
$sandbox
[
'total'
]);
$sandbox
[
'#finished'
]
=
(
$sandbox
[
'processed'
]
/
$sandbox
[
'total'
]);
return
$message
;
}
...
...
@@ -903,7 +909,7 @@ function _uw_set_fieldable_path_storage_config() {
// Get the path to cfg common config install directory.
$path
=
\Drupal
::
service
(
'extension.list.module'
)
->
getPath
(
'uw_cfg_common'
)
.
'/config/install/'
;
->
getPath
(
'uw_cfg_common'
)
.
'/config/install/'
;
$config_dir
=
new
FileStorage
(
$path
);
// Get the config from the yml file into an array.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment