Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
module_filter
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
module_filter
Merge requests
!2
Issue
#3243419
: "Newly available" tab is always empty
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3243419
: "Newly available" tab is always empty
issue/module_filter-3243419:3243419-newly-available-tab
into
8.x-3.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Marcos Rios
requested to merge
issue/module_filter-3243419:3243419-newly-available-tab
into
8.x-3.x
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
8.x-3.x
version 1
5d2f6ec9
2 years ago
8.x-3.x (base)
and
latest version
latest version
c26f90c0
1 commit,
2 years ago
version 1
5d2f6ec9
1 commit,
2 years ago
1 file
+
6
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
module_filter.module
+
6
−
8
Options
@@ -92,14 +92,12 @@ function module_filter_form_system_modules_alter(&$form, FormStateInterface $for
$modules
=
\Drupal
::
service
(
'extension.list.module'
)
->
reset
()
->
getList
();
foreach
(
$modules
as
$name
=>
$module
)
{
if
(
$name
==
'module_filter'
)
{
$ctime
=
filectime
(
$module
->
getPathname
());
if
((
$ctime
-
strtotime
(
'-1 week'
))
>
0
)
{
foreach
(
Element
::
children
(
$form
[
'modules'
])
as
$package
)
{
if
(
isset
(
$form
[
'modules'
][
$package
][
$name
]))
{
$form
[
'modules'
][
$package
][
$name
][
'#attributes'
][
'class'
][]
=
'new'
;
break
;
}
$ctime
=
filectime
(
$module
->
getPathname
());
if
((
$ctime
-
strtotime
(
'-1 week'
))
>
0
)
{
foreach
(
Element
::
children
(
$form
[
'modules'
])
as
$package
)
{
if
(
isset
(
$form
[
'modules'
][
$package
][
$name
]))
{
$form
[
'modules'
][
$package
][
$name
][
'#attributes'
][
'class'
][]
=
'new'
;
break
;
}
}
}
Loading