Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d34f1b65
Commit
d34f1b65
authored
Jul 08, 2014
by
catch
Browse files
Issue
#2295571
by alexpott, tstoeckler: Bogus CustomBlock class in repo.
parent
fce26fe7
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/modules/block/custom_block/src/Plugin/Derivative/CustomBlock.php
deleted
100644 → 0
View file @
fce26fe7
<?php
/**
* @file
* Contains \Drupal\custom_block\Plugin\Derivative\CustomBlock.
*/
namespace
Drupal\custom_block\Plugin\Derivative
;
use
Drupal\Component\Plugin\Derivative\DeriverBase
;
use
Drupal\Core\Plugin\Discovery\ContainerDeriverInterface
;
/**
* Retrieves block plugin definitions for all custom blocks.
*/
class
CustomBlock
extends
DeriverBase
{
/**
* {@inheritdoc}
*/
public
function
getDerivativeDefinitions
(
$base_plugin_definition
)
{
$custom_blocks
=
entity_load_multiple
(
'custom_block'
);
foreach
(
$custom_blocks
as
$custom_block
)
{
$this
->
derivatives
[
$custom_block
->
uuid
()]
=
$base_plugin_definition
;
$this
->
derivatives
[
$custom_block
->
uuid
()][
'admin_label'
]
=
$custom_block
->
label
();
}
return
parent
::
getDerivativeDefinitions
(
$base_plugin_definition
);
}
}
core/modules/block_content/src/Tests/BlockContentSaveTest.php
View file @
d34f1b65
...
...
@@ -8,7 +8,6 @@
namespace
Drupal\block_content\Tests
;
use
Drupal\block_content
\
Entity\BlockContent
;
use
Drupal\custom_block
\
Entity\CustomBlock
;
/**
* Tests block save related functionality.
...
...
core/modules/migrate_drupal/src/Tests/d6/MigrateBlockContentTest.php
View file @
d34f1b65
...
...
@@ -10,7 +10,6 @@
use
Drupal\Core\Language\Language
;
use
Drupal\block_content
\
Entity\BlockContent
;
use
Drupal\Core\Language\LanguageInterface
;
use
Drupal\custom_block
\
Entity\CustomBlock
;
use
Drupal\migrate\MigrateExecutable
;
use
Drupal\migrate_drupal
\
Tests\MigrateDrupalTestBase
;
...
...
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