Skip to content
Snippets Groups Projects
Commit 4977236d authored by Brian Canini's avatar Brian Canini
Browse files

Updating drupal/video_embed_field (2.3.0 => 2.4.0)

parent 28569c8e
No related branches found
No related tags found
No related merge requests found
Showing
with 90 additions and 66 deletions
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "23e954f836631a163d4f0751ea02133a",
"content-hash": "14a6e6a454f4365f46fcf05a5d10b81f",
"packages": [
{
"name": "alchemy/zippy",
......@@ -7885,35 +7885,30 @@
},
{
"name": "drupal/video_embed_field",
"version": "2.3.0",
"version": "2.4.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/video_embed_field.git",
"reference": "8.x-2.3"
"reference": "8.x-2.4"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/video_embed_field-8.x-2.3.zip",
"reference": "8.x-2.3",
"shasum": "d9b4b3bde48edf49d1aa038aae6736496558caf4"
"url": "https://ftp.drupal.org/files/projects/video_embed_field-8.x-2.4.zip",
"reference": "8.x-2.4",
"shasum": "96b14bb93c1bb6a07b84315a4f87367870f8b574"
},
"require": {
"drupal/core": "^8.8 || ^9"
},
"require-dev": {
"drupal/colorbox": "^1.0",
"drupal/media_entity": "*",
"drupal/media_entity_embeddable_video": "*",
"drupal/video_embed_media": "*"
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-2.x": "2.x-dev"
},
"drupal": {
"version": "8.x-2.3",
"datestamp": "1584489966",
"version": "8.x-2.4",
"datestamp": "1587686284",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
......@@ -8823,12 +8818,12 @@
"version": "0.9.1",
"source": {
"type": "git",
"url": "https://github.com/njh/easyrdf.git",
"url": "https://github.com/easyrdf/easyrdf.git",
"reference": "acd09dfe0555fbcfa254291e433c45fdd4652566"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/njh/easyrdf/zipball/acd09dfe0555fbcfa254291e433c45fdd4652566",
"url": "https://api.github.com/repos/easyrdf/easyrdf/zipball/acd09dfe0555fbcfa254291e433c45fdd4652566",
"reference": "acd09dfe0555fbcfa254291e433c45fdd4652566",
"shasum": ""
},
......
......@@ -8129,36 +8129,31 @@
},
{
"name": "drupal/video_embed_field",
"version": "2.3.0",
"version_normalized": "2.3.0.0",
"version": "2.4.0",
"version_normalized": "2.4.0.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/video_embed_field.git",
"reference": "8.x-2.3"
"reference": "8.x-2.4"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/video_embed_field-8.x-2.3.zip",
"reference": "8.x-2.3",
"shasum": "d9b4b3bde48edf49d1aa038aae6736496558caf4"
"url": "https://ftp.drupal.org/files/projects/video_embed_field-8.x-2.4.zip",
"reference": "8.x-2.4",
"shasum": "96b14bb93c1bb6a07b84315a4f87367870f8b574"
},
"require": {
"drupal/core": "^8.8 || ^9"
},
"require-dev": {
"drupal/colorbox": "^1.0",
"drupal/media_entity": "*",
"drupal/media_entity_embeddable_video": "*",
"drupal/video_embed_media": "*"
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-2.x": "2.x-dev"
},
"drupal": {
"version": "8.x-2.3",
"datestamp": "1584489966",
"version": "8.x-2.4",
"datestamp": "1587686284",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
......@@ -9096,12 +9091,12 @@
"version_normalized": "0.9.1.0",
"source": {
"type": "git",
"url": "https://github.com/njh/easyrdf.git",
"url": "https://github.com/easyrdf/easyrdf.git",
"reference": "acd09dfe0555fbcfa254291e433c45fdd4652566"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/njh/easyrdf/zipball/acd09dfe0555fbcfa254291e433c45fdd4652566",
"url": "https://api.github.com/repos/easyrdf/easyrdf/zipball/acd09dfe0555fbcfa254291e433c45fdd4652566",
"reference": "acd09dfe0555fbcfa254291e433c45fdd4652566",
"shasum": ""
},
......
......@@ -26,7 +26,7 @@ class VemCommands extends DrushCommands {
protected $migrator;
/**
* SamplerCommands constructor.
* VemCommands constructor.
*
* @param \Drupal\vem_migrate_oembed\VemMigrate $migrator
* The migrate service.
......@@ -37,14 +37,17 @@ public function __construct(VemMigrate $migrator) {
}
/**
* Migrates from video_embed_media to core media.
* Migrates from VEF to core media.
*
* @throws \Drupal\Core\Entity\EntityStorageException
* @usage drush vemmo
* Migrates from VEF to core media.
*
* @command vem:migrate_oembed
* @aliases vemmo
*/
public function migrate() {
$this->migrator->migrate();
$this->io()->success(\dt('Migration complete.'));
}
}
......@@ -15,6 +15,11 @@ class oEmbedUpdateTest extends BrowserTestBase {
use MediaTypeCreationTrait;
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
......
......@@ -9,13 +9,12 @@
* Implements hook_drush_command().
*/
function vem_migrate_oembed_drush_command() {
$items['video-embed-media-migrate-oembed'] = [
'description' => 'Migrate from VEF to oEmbed in core.',
$items['vem_migrate_oembed'] = [
'description' => 'Migrates from VEF to core media.',
'aliases' => ['vemmo'],
'core' => ['8+'],
'examples' => [
"drush vemmo" => "Migrate from VEF to oEmbed in core",
"drush vemmo" => "Migrates from VEF to core media.",
],
];
......@@ -25,9 +24,9 @@ function vem_migrate_oembed_drush_command() {
/**
* Callback for drush commmand "video-embed-media-migrate-oembed" (vemmo).
*/
function drush_vem_migrate_oembed_video_embed_media_migrate_oembed() {
function drush_vem_migrate_oembed_vem_migrate_oembed() {
/** @var \Drupal\vem_migrate_oembed\VemMigrate $migrate */
$migrate = \Drupal::service('vem_migrate_oembed.migrate');
$migrate->migrate();
\drush_print(\dt('Migration complete.'));
}
......@@ -7,7 +7,7 @@ dependencies:
- drupal:media (>= 8.6)
- video_embed_field:video_embed_media
# Information added by Drupal.org packaging script on 2020-03-18
version: '8.x-2.3'
# Information added by Drupal.org packaging script on 2020-04-23
version: '8.x-2.4'
project: 'video_embed_field'
datestamp: 1584489968
datestamp: 1587686287
......@@ -14,6 +14,11 @@ class BundleTest extends MediaFunctionalTestBase {
use AdminUserTrait;
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Modules to install.
*
......@@ -24,13 +29,6 @@ class BundleTest extends MediaFunctionalTestBase {
'video_embed_media',
];
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
}
/**
* Test the dialog form.
*/
......@@ -38,7 +36,7 @@ public function testMediaBundleCreation() {
$this->drupalLogin($this->adminUser);
// Create bundle and modify form display.
$media_type = $this->createMediaType('video_embed_field', ['bundle' => 'video_bundle']);
$media_type = $this->createMediaType('video_embed_field', ['id' => 'video_bundle']);
$source = $media_type->getSource();
$source_field = $source->getSourceFieldDefinition($media_type);
if ($source_field->isDisplayConfigurable('form')) {
......
......@@ -7,7 +7,7 @@ dependencies:
- drupal:media (>= 8.4)
- video_embed_field:video_embed_field
# Information added by Drupal.org packaging script on 2020-03-18
version: '8.x-2.3'
# Information added by Drupal.org packaging script on 2020-04-23
version: '8.x-2.4'
project: 'video_embed_field'
datestamp: 1584489968
datestamp: 1587686287
......@@ -14,6 +14,11 @@ class TextFormatConfigurationTest extends BrowserTestBase {
use AdminUserTrait;
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
......
......@@ -14,6 +14,11 @@ class EmbedDialogTest extends WebDriverTestBase {
use ContentTypeCreationTrait;
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Modules to install.
*
......
......@@ -8,7 +8,7 @@ dependencies:
- drupal:ckeditor
- video_embed_field:video_embed_field
# Information added by Drupal.org packaging script on 2020-03-18
version: '8.x-2.3'
# Information added by Drupal.org packaging script on 2020-04-23
version: '8.x-2.4'
project: 'video_embed_field'
datestamp: 1584489968
datestamp: 1587686287
......@@ -89,7 +89,7 @@ public static function create(ContainerInterface $container, array $configuratio
$configuration['view_mode'],
$configuration['third_party_settings'],
$container->get('video_embed_field.provider_manager'),
$container->get('entity.manager')->getStorage('image_style')
$container->get('entity_type.manager')->getStorage('image_style')
);
}
......
<?php
namespace Drupal\video_embed_field\Plugin\migrate\cckfield;
namespace Drupal\video_embed_field\Plugin\migrate\field;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row;
......@@ -9,7 +9,7 @@
/**
* Plugin to migrate from the Drupal 6 emfield module.
*
* @MigrateCckField(
* @MigrateField(
* id = "emvideo",
* core = {6},
* source_module = "emfield",
......
<?php
namespace Drupal\video_embed_field\Plugin\migrate\cckfield;
namespace Drupal\video_embed_field\Plugin\migrate\field;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row;
......@@ -9,7 +9,7 @@
/**
* Plugin to migrate from the Drupal 7 video_embed_field module.
*
* @MigrateCckField(
* @MigrateField(
* id = "video_embed_field",
* core = {7},
* source_module = "video_embed_field",
......
......@@ -3,9 +3,8 @@ description: A mock provider for testing purposes only.
type: module
hidden: true
package: Testing
core: 8.x
# Information added by Drupal.org packaging script on 2020-03-18
version: '8.x-2.3'
# Information added by Drupal.org packaging script on 2020-04-23
version: '8.x-2.4'
project: 'video_embed_field'
datestamp: 1584489968
datestamp: 1587686287
......@@ -12,6 +12,11 @@ class AutoplayPermissionTest extends BrowserTestBase {
use EntityDisplaySetupTrait;
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
public static $modules = [
'video_embed_field',
'node',
......
......@@ -14,6 +14,11 @@ class FieldConfigurationTest extends BrowserTestBase {
use EntityDisplaySetupTrait;
use AdminUserTrait;
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
......
......@@ -15,6 +15,11 @@ class FormatterConfigurationTest extends BrowserTestBase {
use AdminUserTrait;
use EntityDisplaySetupTrait;
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
......
......@@ -13,6 +13,11 @@ class InstallationTest extends BrowserTestBase {
use AdminUserTrait;
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment