Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floating_block
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
floating_block
Merge requests
!13
Added Drupal 11 compatibility.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added Drupal 11 compatibility.
issue/floating_block-3457244:3457244-d11
into
2.0.x
Overview
0
Commits
11
Pipelines
5
Changes
7
Merged
Youri van Koppen
requested to merge
issue/floating_block-3457244:3457244-d11
into
2.0.x
1 year ago
Overview
0
Commits
11
Pipelines
5
Changes
7
Expand
Closes
#3457244
0
0
Merge request reports
Compare
2.0.x
version 4
19f5801a
1 year ago
version 3
a7efbf47
1 year ago
version 2
af03d03a
1 year ago
version 1
ef1fd71d
1 year ago
2.0.x (base)
and
latest version
latest version
19f5801a
11 commits,
8 months ago
version 4
19f5801a
11 commits,
1 year ago
version 3
a7efbf47
10 commits,
1 year ago
version 2
af03d03a
5 commits,
1 year ago
version 1
ef1fd71d
1 commit,
1 year ago
7 files
+
46
−
104
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
src/Form/SettingsForm.php
+
6
−
2
Options
@@ -3,6 +3,7 @@
namespace
Drupal\floating_block\Form
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\Config\TypedConfigManagerInterface
;
use
Drupal\Core\Form\ConfigFormBase
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\floating_block
\HelperInterface
;
@@ -25,11 +26,13 @@ final class SettingsForm extends ConfigFormBase {
*
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects.
* @param \Drupal\Core\Config\TypedConfigManagerInterface|null $typedConfigManager
* The typed config manager.
* @param \Drupal\floating_block\HelperInterface $helper
* The Floating Block helper service.
*/
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
HelperInterface
$helper
)
{
parent
::
__construct
(
$config_factory
);
public
function
__construct
(
ConfigFactoryInterface
$config_factory
,
TypedConfigManagerInterface
$typedConfigManager
,
HelperInterface
$helper
)
{
parent
::
__construct
(
$config_factory
,
$typedConfigManager
);
$this
->
helper
=
$helper
;
}
@@ -39,6 +42,7 @@ final class SettingsForm extends ConfigFormBase {
public
static
function
create
(
ContainerInterface
$container
)
{
return
new
static
(
$container
->
get
(
'config.factory'
),
$container
->
get
(
'config.typed'
),
$container
->
get
(
'floating_block'
)
);
}
Loading