Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
302
Merge Requests
302
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
79a7f1cf
Commit
79a7f1cf
authored
Jun 16, 2013
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1978166
follow-up by tim.plunkett: Fix broken tests due to broken typehint.
parent
547b8745
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php
.../Drupal/custom_block/Controller/CustomBlockController.php
+6
-7
No files found.
core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php
View file @
79a7f1cf
...
...
@@ -8,9 +8,8 @@
namespace
Drupal\custom_block\Controller
;
use
Drupal\Core\Controller\ControllerInterface
;
use
Drupal\
custom_block
\
CustomBlockStorageController
;
use
Drupal\
Core\Entity\EntityStorageControllerInterface
;
use
Drupal\custom_block
\
CustomBlockTypeInterface
;
use
Drupal\custom_block
\
CustomBlockTypeStorageController
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\HttpFoundation\Request
;
...
...
@@ -26,14 +25,14 @@ class CustomBlockController implements ControllerInterface {
/**
* The custom block storage controller.
*
* @var \Drupal\
custom_block\CustomBlockStorageController
* @var \Drupal\
Core\Entity\EntityStorageControllerInterface
*/
protected
$customBlockStorage
;
/**
* The custom block type storage controller.
*
* @var \Drupal\
custom_block\CustomBlockTypeStorageController
* @var \Drupal\
Core\Entity\EntityStorageControllerInterface
*/
protected
$customBlockTypeStorage
;
...
...
@@ -54,12 +53,12 @@ public static function create(ContainerInterface $container) {
*
* @param \Symfony\Component\HttpFoundation\Request $request
* Current request.
* @param \Drupal\
custom_block\CustomBlockStorageController
$custom_block_storage
* @param \Drupal\
Core\Entity\EntityStorageControllerInterface
$custom_block_storage
* The custom block storage controller.
* @param \Drupal\
custom_block\CustomBlockTypeStorageController
$custom_block_type_storage
* @param \Drupal\
Core\Entity\EntityStorageControllerInterface
$custom_block_type_storage
* The custom block type storage controller.
*/
public
function
__construct
(
Request
$request
,
CustomBlockStorageController
$custom_block_storage
,
CustomBlockTypeStorageController
$custom_block_type_storage
)
{
public
function
__construct
(
Request
$request
,
EntityStorageControllerInterface
$custom_block_storage
,
EntityStorageControllerInterface
$custom_block_type_storage
)
{
$this
->
request
=
$request
;
$this
->
customBlockStorage
=
$custom_block_storage
;
$this
->
customBlockTypeStorage
=
$custom_block_type_storage
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment