security update devel, metatag
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
Metatag 8.x-1.8, 2019-02-20
|
||||
---------------------------
|
||||
By samuel.mortenson, Berdir, DamienMcKenna: Fix data property definition.
|
||||
|
||||
|
||||
Metatag 8.x-1.7, 2018-08-31
|
||||
---------------------------
|
||||
#2994979 by DamienMcKenna, dspachos, ynotpeanutbutter, oxy86, IT-Cru, kdeds,
|
||||
|
||||
@@ -13,8 +13,8 @@ test_dependencies:
|
||||
- restui:restui
|
||||
- schema_metatag:schema_web_page
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -7,8 +7,8 @@ dependencies:
|
||||
- metatag:metatag
|
||||
- metatag:metatag_dc
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -7,8 +7,8 @@ dependencies:
|
||||
- metatag:metatag
|
||||
- metatag:metatag_open_graph
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -7,8 +7,8 @@ dependencies:
|
||||
- page_manager:page_manager
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@ package: SEO
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
@@ -7,8 +7,8 @@ dependencies:
|
||||
- metatag:metatag
|
||||
- drupal:views
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace Drupal\metatag;
|
||||
|
||||
use Drupal\Core\DependencyInjection\ContainerBuilder;
|
||||
use Drupal\Core\DependencyInjection\ServiceProviderBase;
|
||||
use Drupal\metatag\Normalizer\FieldItemNormalizer;
|
||||
use Drupal\metatag\Normalizer\MetatagHalNormalizer;
|
||||
use Drupal\metatag\Normalizer\MetatagNormalizer;
|
||||
use Symfony\Component\DependencyInjection\Definition;
|
||||
@@ -30,10 +29,6 @@ class MetatagServiceProvider extends ServiceProviderBase {
|
||||
$metatag_hal = new Definition(MetatagHalNormalizer::class);
|
||||
$metatag_hal->addTag('normalizer', ['priority' => 31]);
|
||||
$container->setDefinition('metatag.normalizer.metatag.hal', $metatag_hal);
|
||||
|
||||
$metatag_field = new Definition(FieldItemNormalizer::class);
|
||||
$metatag_field->addTag('normalizer', ['priority' => 30]);
|
||||
$container->setDefinition('metatag.normalizer.metatag_field', $metatag_field);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Drupal\metatag\Normalizer;
|
||||
|
||||
use Drupal\serialization\Normalizer\NormalizerBase;
|
||||
|
||||
/**
|
||||
* Converts the Metatag field item object structure to METATAG array structure.
|
||||
*/
|
||||
class FieldItemNormalizer extends NormalizerBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $supportedInterfaceOrClass = 'Drupal\metatag\Plugin\Field\FieldType\MetatagFieldItem';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function normalize($field_item, $format = NULL, array $context = []) {
|
||||
$values = $field_item->getValue();
|
||||
|
||||
$normalized['value'] = unserialize($values['value']);
|
||||
|
||||
return $normalized;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,7 +19,6 @@ class MetatagHalNormalizer extends MetatagNormalizer {
|
||||
$normalized = parent::normalize($field_item, $format, $context);
|
||||
|
||||
// Mock the field array similar to the other fields.
|
||||
// @see Drupal\hal\Normalizer\FieldItemNormalizer
|
||||
return [
|
||||
'metatag' => [$normalized],
|
||||
];
|
||||
|
||||
+4
-1
@@ -14,7 +14,10 @@ use Drupal\Core\TypedData\DataDefinition;
|
||||
* label = @Translation("Meta tags"),
|
||||
* description = @Translation("This field stores code meta tags."),
|
||||
* default_widget = "metatag_firehose",
|
||||
* default_formatter = "metatag_empty_formatter"
|
||||
* default_formatter = "metatag_empty_formatter",
|
||||
* serialized_property_names = {
|
||||
* "value"
|
||||
* }
|
||||
* )
|
||||
*/
|
||||
class MetatagFieldItem extends FieldItemBase {
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@ package: Testing
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@ package: Testing
|
||||
dependencies:
|
||||
- metatag:metatag
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-08-31
|
||||
version: '8.x-1.7'
|
||||
# Information added by Drupal.org packaging script on 2019-02-20
|
||||
version: '8.x-1.8'
|
||||
core: '8.x'
|
||||
project: 'metatag'
|
||||
datestamp: 1535726412
|
||||
datestamp: 1550683387
|
||||
|
||||
Reference in New Issue
Block a user