Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tmgmt-3494267
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
tmgmt-3494267
Commits
b0bcac6b
Commit
b0bcac6b
authored
7 years ago
by
Sascha Grossenbacher
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Issue
#2840331
by Berdir: Missing parent call in TmgmtFormBase::__constuctor"
This reverts commit
691bbcc1
.
parent
89beaa74
No related branches found
Branches containing commit
Tags
8.x-1.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/TmgmtFormBase.php
+2
-10
2 additions, 10 deletions
src/Form/TmgmtFormBase.php
with
2 additions
and
10 deletions
src/Form/TmgmtFormBase.php
+
2
−
10
View file @
b0bcac6b
...
...
@@ -2,10 +2,8 @@
namespace
Drupal\tmgmt\Form
;
use
Drupal\Component\Datetime\TimeInterface
;
use
Drupal\Core\Entity\ContentEntityForm
;
use
Drupal\Core\Entity\EntityManagerInterface
;
use
Drupal\Core\Entity\EntityTypeBundleInfoInterface
;
use
Drupal\Core\Render\RendererInterface
;
use
Drupal\tmgmt\SourceManager
;
use
Drupal\tmgmt\TranslatorManager
;
...
...
@@ -44,10 +42,6 @@ class TmgmtFormBase extends ContentEntityForm {
*
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager service.
* @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info
* The entity type bundle service.
* @param \Drupal\Component\Datetime\TimeInterface $time
* The time service.
* @param \Drupal\tmgmt\TranslatorManager $translator_manager
* The translator plugin manager.
* @param \Drupal\tmgmt\SourceManager $source_manager
...
...
@@ -55,8 +49,8 @@ class TmgmtFormBase extends ContentEntityForm {
* @param \Drupal\Core\Render\RendererInterface $renderer
* The renderer.
*/
public
function
__construct
(
EntityManagerInterface
$entity_manager
,
EntityTypeBundleInfoInterface
$entity_type_bundle_info
,
TimeInterface
$time
,
TranslatorManager
$translator_manager
,
SourceManager
$source_manager
,
RendererInterface
$renderer
)
{
parent
::
__construct
(
$
entity
_m
anager
,
$entity_
type_bundle_info
,
$time
)
;
public
function
__construct
(
EntityManagerInterface
$entity_manager
,
TranslatorManager
$translator_manager
,
SourceManager
$source_manager
,
RendererInterface
$renderer
)
{
$this
->
entity
M
anager
=
$entity_
manager
;
$this
->
translatorManager
=
$translator_manager
;
$this
->
sourceManager
=
$source_manager
;
$this
->
renderer
=
$renderer
;
...
...
@@ -68,8 +62,6 @@ class TmgmtFormBase extends ContentEntityForm {
public
static
function
create
(
ContainerInterface
$container
)
{
return
new
static
(
$container
->
get
(
'entity.manager'
),
$container
->
get
(
'entity_type.bundle.info'
),
$container
->
get
(
'datetime.time'
),
$container
->
get
(
'plugin.manager.tmgmt.translator'
),
$container
->
get
(
'plugin.manager.tmgmt.source'
),
$container
->
get
(
'renderer'
)
...
...
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