Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes

This commit is contained in:
Pantheon Automation 2016-04-20 09:56:34 -07:00 committed by Greg Anderson
parent b11a755ba8
commit c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions

View file

@ -7,7 +7,7 @@ block_content.list_sub:
route_name: entity.block_content.collection
parent_id: entity.block_content.collection
entity.block_content_type.collection:
title: Types
title: Block types
route_name: entity.block_content_type.collection
parent_id: entity.block_content.collection
weight: 1

View file

@ -18,22 +18,22 @@ function block_content_help($route_name, RouteMatchInterface $route_match) {
$field_ui = \Drupal::moduleHandler()->moduleExists('field_ui') ? \Drupal::url('help.page', array('name' => 'field_ui')) : '#';
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Custom Block module allows you to create custom <em>block types</em> and <em>content-containing blocks</em>, and provides a <a href=":block-library">Custom block library</a> listing all of them. Custom block types have fields; see the <a href=":field-help">Field module help</a> for more information. Once created, custom blocks can be placed in regions just like blocks provided by other modules; see the <a href=":blocks">Block module help page</a> for details. For more information, see the <a href=":online-help">online documentation for the Custom Block module</a>.', array(':block-library' => \Drupal::url('entity.block_content.collection'), ':block-content' => \Drupal::url('entity.block_content.collection'), ':field-help' => \Drupal::url('help.page', array('name' => 'field')), ':blocks' => \Drupal::url('help.page', array('name' => 'block')), ':online-help' => 'https://www.drupal.org/documentation/modules/block_content')) . '</p>';
$output .= '<p>' . t('The Custom Block module allows you to create and manage custom <em>block types</em> and <em>content-containing blocks</em> from the <a href = ":block-library" >Custom block library<a/> page. Custom block types have fields; see the <a href=":field-help">Field module help</a> for more information. Once created, custom blocks can be placed in regions just like blocks provided by other modules; see the <a href=":blocks">Block module help</a> page for details. For more information, see the <a href=":online-help">online documentation for the Custom Block module</a>.', array(':block-library' => \Drupal::url('entity.block_content.collection'), ':block-content' => \Drupal::url('entity.block_content.collection'), ':field-help' => \Drupal::url('help.page', array('name' => 'field')), ':blocks' => \Drupal::url('help.page', array('name' => 'block')), ':online-help' => 'https://www.drupal.org/documentation/modules/block_content')) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Creating and managing custom block types') . '</dt>';
$output .= '<dd>' . t('Users with the <em>Administer blocks</em> permission can create and edit custom block types with fields and display settings, from the <a href=":types">Custom block types</a> page in the Custom block library. For more information about managing fields and display settings, see the <a href=":field-ui">Field UI module help</a>.', array(':types' => \Drupal::url('entity.block_content_type.collection'), ':field-ui' => $field_ui)) . '</dd>';
$output .= '<dd>' . t('Users with the <em>Administer blocks</em> permission can create and edit custom block types with fields and display settings, from the <a href=":types">Block types</a> page in the Custom block library. For more information about managing fields and display settings, see the <a href=":field-ui">Field UI module help</a>.', array(':types' => \Drupal::url('entity.block_content_type.collection'), ':field-ui' => $field_ui)) . '</dd>';
$output .= '<dt>' . t('Creating custom blocks') . '</dt>';
$output .= '<dd>' . t('Users with the <em>Administer blocks</em> permission can create, edit, and delete custom blocks of each custom block type you have defined, from the <a href=":block-library">Custom block library</a> page. Custom blocks are shown in the <em>Place blocks</em> list on the <a href=":blocks">Block layout page</a>; see the <a href=":block_help">Block module help</a> for more information about placing blocks.', array(':blocks' => \Drupal::url('block.admin_display'), ':block-library' => \Drupal::url('entity.block_content.collection'), ':block_help' => \Drupal::url('help.page', array('name' => 'block')))) . '</dd>';
$output .= '<dd>' . t('Users with the <em>Administer blocks</em> permission can create, edit, and delete custom blocks of each defined custom block type, from the <a href=":block-library">Blocks</a> page in the Custom block library. After creating a block, place it in a region from the <a href=":blocks">Block layout</a> page; see the <a href=":block_help">Block module help</a> for more information about placing blocks.', array(':blocks' => \Drupal::url('block.admin_display'), ':block-library' => \Drupal::url('entity.block_content.collection'), ':block_help' => \Drupal::url('help.page', array('name' => 'block')))) . '</dd>';
$output .= '</dl>';
return $output;
case 'entity.block_content.collection':
$output = '<p>' . t('Blocks in the block library belong to <a href=":types">block types</a>, each with its own fields and display settings. After creating a block, place it in a region from the <a href=":blocks">Block layout page</a>.', array(':types' => \Drupal::url('entity.block_content_type.collection'), ':blocks' => \Drupal::url('block.admin_display'))) . '</p>';
$output = '<p>' . t('Blocks in the block library belong to <a href=":types">Custom block types</a>, each with its own fields and display settings. After creating a block, place it in a region from the <a href=":blocks">Block layout</a> page.', array(':types' => \Drupal::url('entity.block_content_type.collection'), ':blocks' => \Drupal::url('block.admin_display'))) . '</p>';
return $output;
case 'entity.block_content_type.collection':
$output = '<p>' . t('Each block type has its own fields and display settings. Create blocks of each type on the <a href=":block-library">Block library page</a>.', array(':block-library' => \Drupal::url('entity.block_content.collection'))) . '</p>';
$output = '<p>' . t('Each block type has its own fields and display settings. Create blocks of each type on the <a href=":block-library">Blocks</a> page in the custom block library.', array(':block-library' => \Drupal::url('entity.block_content.collection'))) . '</p>';
return $output;
}
@ -79,12 +79,12 @@ function block_content_add_body_field($block_type_id, $label = 'Body') {
// Add or remove the body field, as needed.
$field = FieldConfig::loadByName('block_content', $block_type_id, 'body');
if (empty($field)) {
$field = entity_create('field_config', array(
$field = FieldConfig::create([
'field_storage' => FieldStorageConfig::loadByName('block_content', 'body'),
'bundle' => $block_type_id,
'label' => $label,
'settings' => array('display_summary' => FALSE),
));
]);
$field->save();
// Assign widget settings for the 'default' form mode.

View file

@ -16,15 +16,3 @@ block_content.type.*:
description:
type: text
label: 'Description'
migrate.source.d6_box:
type: migrate_source_sql
label: 'Drupal 6 box'
mapping:
constants:
type: mapping
label: 'Constants'
mapping:
type:
type: string
label: 'Type'

View file

@ -3,7 +3,7 @@
* Defines Javascript behaviors for the block_content module.
*/
(function ($) {
(function ($, Drupal) {
'use strict';
@ -54,4 +54,4 @@
}
};
})(jQuery);
})(jQuery, Drupal);

View file

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\BlockContentAccessControlHandler.
*/
namespace Drupal\block_content;
use Drupal\Core\Access\AccessResult;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\BlockContentForm.
*/
namespace Drupal\block_content;
use Drupal\Component\Utility\Html;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\BlockContentInterface.
*/
namespace Drupal\block_content;
use Drupal\Core\Entity\ContentEntityInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\BlockContentListBuilder.
*/
namespace Drupal\block_content;
use Drupal\Core\Entity\EntityInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\BlockContentTranslationHandler.
*/
namespace Drupal\block_content;
use Drupal\block_content\Entity\BlockContentType;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\BlockContentTypeForm.
*/
namespace Drupal\block_content;
use Drupal\Core\Entity\BundleEntityFormBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\BlockContentTypeInterface.
*/
namespace Drupal\block_content;
use Drupal\Core\Config\Entity\ConfigEntityInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\BlockContentTypeListBuilder.
*/
namespace Drupal\block_content;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\BlockContentViewBuilder.
*/
namespace Drupal\block_content;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\BlockContentViewsData.
*/
namespace Drupal\block_content;
use Drupal\views\EntityViewsData;
@ -29,8 +24,8 @@ class BlockContentViewsData extends EntityViewsData {
$data['block_content_field_data']['type']['field']['id'] = 'field';
$data['block_content']['block_content_listing_empty'] = array(
'title' => t('Empty block library behavior'),
'help' => t('Provides a link to add a new block.'),
'title' => $this->t('Empty block library behavior'),
'help' => $this->t('Provides a link to add a new block.'),
'area' => array(
'id' => 'block_content_listing_empty',
),

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Controller\BlockContentController.
*/
namespace Drupal\block_content\Controller;
use Drupal\Core\Controller\ControllerBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Entity\BlockContent.
*/
namespace Drupal\block_content\Entity;
use Drupal\Core\Entity\ContentEntityBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Entity\BlockContentType.
*/
namespace Drupal\block_content\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBundleBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Form\BlockContentDeleteForm.
*/
namespace Drupal\block_content\Form;
use Drupal\Core\Entity\ContentEntityDeleteForm;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Form\BlockContentTypeDeleteForm.
*/
namespace Drupal\block_content\Form;
use Drupal\Core\Entity\EntityDeleteForm;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Plugin\Block\BlockContentBlock.
*/
namespace Drupal\block_content\Plugin\Block;
use Drupal\Core\Access\AccessResult;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Plugin\Derivative\BlockContent.
*/
namespace Drupal\block_content\Plugin\Derivative;
use Drupal\Component\Plugin\Derivative\DeriverBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Plugin\Menu\LocalAction\BlockContentAddLocalAction.
*/
namespace Drupal\block_content\Plugin\Menu\LocalAction;
use Drupal\Core\Menu\LocalActionDefault;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Plugin\migrate\source\d6\Box.
*/
namespace Drupal\block_content\Plugin\migrate\source\d6;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Plugin\migrate\source\d7\BlockCustom.
*/
namespace Drupal\block_content\Plugin\migrate\source\d7;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Plugin\views\area\ListingEmpty.
*/
namespace Drupal\block_content\Plugin\views\area;
use Drupal\Core\Access\AccessManagerInterface;

View file

@ -1,12 +1,9 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentCacheTagsTest.
*/
namespace Drupal\block_content\Tests;
use Drupal\block_content\Entity\BlockContent;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Language\LanguageInterface;
@ -29,7 +26,7 @@ class BlockContentCacheTagsTest extends EntityCacheTagsTestBase {
* {@inheritdoc}
*/
protected function createEntity() {
$block_content_type = entity_create('block_content_type', array(
$block_content_type = BlockContentType::create(array(
'id' => 'basic',
'label' => 'basic',
'revision' => FALSE
@ -38,7 +35,7 @@ class BlockContentCacheTagsTest extends EntityCacheTagsTestBase {
block_content_add_body_field($block_content_type->id());
// Create a "Llama" custom block.
$block_content = entity_create('block_content', array(
$block_content = BlockContent::create(array(
'info' => 'Llama',
'type' => 'basic',
'body' => array(

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentCreationTest.
*/
namespace Drupal\block_content\Tests;
use Drupal\block_content\Entity\BlockContent;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentListTest.
*/
namespace Drupal\block_content\Tests;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentListViewsTest.
*/
namespace Drupal\block_content\Tests;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentPageViewTest.
*/
namespace Drupal\block_content\Tests;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentRevisionsTest.
*/
namespace Drupal\block_content\Tests;
use Drupal\block_content\Entity\BlockContent;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentSaveTest.
*/
namespace Drupal\block_content\Tests;
use Drupal\block_content\Entity\BlockContent;
@ -46,7 +41,7 @@ class BlockContentSaveTest extends BlockContentTestBase {
'type' => 'basic',
'id' => $test_id
);
$block = entity_create('block_content', $block_array);
$block = BlockContent::create($block_array);
$block->enforceIsNew(TRUE);
$block->save();

View file

@ -1,12 +1,9 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentTestBase.
*/
namespace Drupal\block_content\Tests;
use Drupal\block_content\Entity\BlockContent;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\simpletest\WebTestBase;
/**
@ -78,7 +75,7 @@ abstract class BlockContentTestBase extends WebTestBase {
*/
protected function createBlockContent($title = FALSE, $bundle = 'basic', $save = TRUE) {
$title = ($title ? : $this->randomMachineName());
$block_content = entity_create('block_content', array(
$block_content = BlockContent::create(array(
'info' => $title,
'type' => $bundle,
'langcode' => 'en'
@ -101,7 +98,7 @@ abstract class BlockContentTestBase extends WebTestBase {
* Created custom block type.
*/
protected function createBlockContentType($label, $create_body = FALSE) {
$bundle = entity_create('block_content_type', array(
$bundle = BlockContentType::create(array(
'id' => $label,
'label' => $label,
'revision' => FALSE,

View file

@ -1,12 +1,9 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentTranslationUITest.
*/
namespace Drupal\block_content\Tests;
use Drupal\block_content\Entity\BlockContent;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\Component\Utility\Unicode;
use Drupal\content_translation\Tests\ContentTranslationUITestBase;
@ -60,7 +57,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
*/
protected function setupBundle() {
// Create the basic bundle since it is provided by standard.
$bundle = entity_create('block_content_type', array(
$bundle = BlockContentType::create(array(
'id' => $this->bundle,
'label' => $this->bundle,
'revision' => FALSE
@ -96,7 +93,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
protected function createBlockContent($title = FALSE, $bundle = FALSE) {
$title = ($title ? : $this->randomMachineName());
$bundle = ($bundle ? : $this->bundle);
$block_content = entity_create('block_content', array(
$block_content = BlockContent::create(array(
'info' => $title,
'type' => $bundle,
'langcode' => 'en'
@ -162,7 +159,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
public function testDisabledBundle() {
// Create a bundle that does not have translation enabled.
$disabled_bundle = $this->randomMachineName();
$bundle = entity_create('block_content_type', array(
$bundle = BlockContentType::create(array(
'id' => $disabled_bundle,
'label' => $disabled_bundle,
'revision' => FALSE

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentTypeTest.
*/
namespace Drupal\block_content\Tests;
use Drupal\block_content\Entity\BlockContentType;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\BlockContentValidationTest.
*/
namespace Drupal\block_content\Tests;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\PageEditTest.
*/
namespace Drupal\block_content\Tests;
use Drupal\block_content\Entity\BlockContent;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\Views\BlockContentFieldFilterTest.
*/
namespace Drupal\block_content\Tests\Views;
use Drupal\field\Entity\FieldStorageConfig;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\Views\BlockContentIntegrationTest.
*/
namespace Drupal\block_content\Tests\Views;
/**

View file

@ -1,12 +1,8 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\Views\BlockContentTestBase.
*/
namespace Drupal\block_content\Tests\Views;
use Drupal\block_content\Entity\BlockContent;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\views\Tests\ViewTestBase;
@ -69,7 +65,7 @@ abstract class BlockContentTestBase extends ViewTestBase {
'type' => 'basic',
'langcode' => 'en',
);
if ($block_content = entity_create('block_content', $settings)) {
if ($block_content = BlockContent::create($settings)) {
$status = $block_content->save();
}
$this->assertEqual($status, SAVED_NEW, SafeMarkup::format('Created block content %info.', array('%info' => $block_content->label())));
@ -100,7 +96,7 @@ abstract class BlockContentTestBase extends ViewTestBase {
'label' => $id,
'revision' => FALSE
);
$bundle = entity_create('block_content_type', $values);
$bundle = BlockContentType::create($values);
$status = $bundle->save();
block_content_add_body_field($bundle->id());

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\Views\FieldTypeTest.
*/
namespace Drupal\block_content\Tests\Views;
use Drupal\views\Views;

View file

@ -1,9 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\Views\RevisionRelationshipsTest.
*/
namespace Drupal\block_content\Tests\Views;
use Drupal\block_content\Entity\BlockContentType;

View file

@ -1,17 +1,12 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\Migrate\MigrateBlockContentBodyFieldTest.
*/
namespace Drupal\block_content\Tests\Migrate;
namespace Drupal\Tests\block_content\Kernel\Migrate;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\FieldConfigInterface;
use Drupal\field\FieldStorageConfigInterface;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Attaches a body field to the custom block type.

View file

@ -1,15 +1,10 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\Migrate\MigrateBlockContentStubTest.
*/
namespace Drupal\block_content\Tests\Migrate;
namespace Drupal\Tests\block_content\Kernel\Migrate;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\migrate\MigrateException;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
use Drupal\migrate_drupal\Tests\StubTestTrait;
/**

View file

@ -1,15 +1,10 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\Migrate\MigrateBlockContentTypeTest.
*/
namespace Drupal\block_content\Tests\Migrate;
namespace Drupal\Tests\block_content\Kernel\Migrate;
use Drupal\block_content\BlockContentTypeInterface;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of the basic block content type.

View file

@ -1,14 +1,9 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\Migrate\d6\MigrateBlockContentTest.
*/
namespace Drupal\block_content\Tests\Migrate\d6;
namespace Drupal\Tests\block_content\Kernel\Migrate\d6;
use Drupal\block_content\Entity\BlockContent;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade custom blocks.

View file

@ -1,15 +1,10 @@
<?php
/**
* @file
* Contains \Drupal\block_content\Tests\Migrate\d7\MigrateCustomBlockTest.
*/
namespace Drupal\block_content\Tests\Migrate\d7;
namespace Drupal\Tests\block_content\Kernel\Migrate\d7;
use Drupal\block_content\BlockContentInterface;
use Drupal\block_content\Entity\BlockContent;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of custom blocks.

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Tests\block_content\Unit\Menu\BlockContentLocalTasksTest.
*/
namespace Drupal\Tests\block_content\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Tests\block_content\Unit\Plugin\migrate\source\d6\BoxTest.
*/
namespace Drupal\Tests\block_content\Unit\Plugin\migrate\source\d6;
use Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Tests\block_content\Unit\Plugin\migrate\source\d7\BlockCustomTest.
*/
namespace Drupal\Tests\block_content\Unit\Plugin\migrate\source\d7;
use Drupal\block_content\Plugin\migrate\source\d7\BlockCustom;