Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
filefield_paths
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
filefield_paths
Commits
a04530f9
Commit
a04530f9
authored
5 months ago
by
James Glasgow
Committed by
Oleh Vehera
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3430580
: Automated Drupal 11 compatibility fixes for filefield_paths
parent
9773d834
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!21
Issue #3430580: Automated Drupal 11 compatibility fixes for filefield_paths
Pipeline
#320267
failed
5 months ago
Stage: build
Stage: validate
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
filefield_paths.info.yml
+1
-1
1 addition, 1 deletion
filefield_paths.info.yml
src/Form/SettingsForm.php
+5
-3
5 additions, 3 deletions
src/Form/SettingsForm.php
tests/modules/filefield_paths_test/filefield_paths_test.info.yml
+1
-0
1 addition, 0 deletions
...odules/filefield_paths_test/filefield_paths_test.info.yml
with
7 additions
and
4 deletions
filefield_paths.info.yml
+
1
−
1
View file @
a04530f9
...
...
@@ -2,7 +2,7 @@ name: 'File (Field) Paths'
description
:
'
Adds
improved
Token
based
file
sorting
and
renaming
functionalities.'
package
:
Fields
configure
:
filefield_paths.admin_settings
core_version_requirement
:
^10.3
core_version_requirement
:
^10.3
|| ^11
type
:
module
dependencies
:
-
drupal:file
...
...
This diff is collapsed.
Click to expand it.
src/Form/SettingsForm.php
+
5
−
3
View file @
a04530f9
...
...
@@ -10,6 +10,7 @@ use Drupal\Core\Form\FormStateInterface;
use
Drupal\Core\StreamWrapper\StreamWrapperManagerInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\HttpFoundation\Request
;
use
Drupal\Core\Config\TypedConfigManagerInterface
;
/**
* Administration settings form for File (Field) Paths.
...
...
@@ -35,8 +36,8 @@ class SettingsForm extends ConfigFormBase {
/**
* {@inheritdoc}
*/
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
StreamWrapperManagerInterface
$stream_wrapper_manager
,
FileSystemInterface
$file_system
)
{
parent
::
__construct
(
$config_factory
);
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
StreamWrapperManagerInterface
$stream_wrapper_manager
,
FileSystemInterface
$file_system
,
TypedConfigManagerInterface
$typed_configmanager
)
{
parent
::
__construct
(
$config_factory
,
$typed_configmanager
);
$this
->
streamWrapperManager
=
$stream_wrapper_manager
;
$this
->
fileSystem
=
$file_system
;
}
...
...
@@ -48,7 +49,8 @@ class SettingsForm extends ConfigFormBase {
return
new
static
(
$container
->
get
(
'config.factory'
),
$container
->
get
(
'stream_wrapper_manager'
),
$container
->
get
(
'file_system'
)
$container
->
get
(
'file_system'
),
$container
->
get
(
'config.typed'
)
);
}
...
...
This diff is collapsed.
Click to expand it.
tests/modules/filefield_paths_test/filefield_paths_test.info.yml
+
1
−
0
View file @
a04530f9
...
...
@@ -2,6 +2,7 @@ name: 'File (Field) Paths tests'
description
:
'
Support
module
for
File
(Field)
Paths
related
testing.'
package
:
Testing
type
:
module
core_version_requirement
:
^10.3 || ^11.0
dependencies
:
-
filefield_paths:filefield_paths
-
drupal:file_test
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