Skip to content
Snippets Groups Projects
Commit de0e709f authored by Michael Lee's avatar Michael Lee
Browse files

Upgrading drupal/metatag (2.0.0 => 2.0.2)

parent d85ef4c3
No related branches found
No related tags found
1 merge request!158Bulk Module Update: Admin Toolbar, Entity Reference Revisions, Field Group, Imagecache External, Menu Block, Metatag, Pathauto
Showing
with 377 additions and 97 deletions
......@@ -4721,42 +4721,45 @@
},
{
"name": "drupal/metatag",
"version": "2.0.0",
"version": "2.0.2",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/metatag.git",
"reference": "2.0.0"
"reference": "2.0.2"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/metatag-2.0.0.zip",
"reference": "2.0.0",
"shasum": "2966c854d982b7069b1c0111519427990ebbad40"
"url": "https://ftp.drupal.org/files/projects/metatag-2.0.2.zip",
"reference": "2.0.2",
"shasum": "748013c50a0ed5e10359413bb3481392a0bf0d3f"
},
"require": {
"drupal/core": "^9.4 || ^10",
"drupal/core": "^9.4 || ^10 || ^11",
"drupal/token": "^1.0",
"php": ">=8.0"
},
"require-dev": {
"drupal/devel": "^4.0 || ^5.0",
"drupal/hal": "^9 || ^1 || ^2",
"drupal/hal": "^1 || ^2 || ^9",
"drupal/metatag_dc": "*",
"drupal/metatag_open_graph": "*",
"drupal/page_manager": "^4.0",
"drupal/redirect": "^1.0",
"drupal/webprofiler": "^9 || ^10",
"ergebnis/composer-normalize": "*",
"mpyw/phpunit-patch-serializable-comparison": "*"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "2.0.0",
"datestamp": "1692368265",
"version": "2.0.2",
"datestamp": "1722869772",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
},
"composer-normalize": {
"indent-size": 2,
"indent-style": "space"
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
......
......@@ -4967,43 +4967,46 @@
},
{
"name": "drupal/metatag",
"version": "2.0.0",
"version_normalized": "2.0.0.0",
"version": "2.0.2",
"version_normalized": "2.0.2.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/metatag.git",
"reference": "2.0.0"
"reference": "2.0.2"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/metatag-2.0.0.zip",
"reference": "2.0.0",
"shasum": "2966c854d982b7069b1c0111519427990ebbad40"
"url": "https://ftp.drupal.org/files/projects/metatag-2.0.2.zip",
"reference": "2.0.2",
"shasum": "748013c50a0ed5e10359413bb3481392a0bf0d3f"
},
"require": {
"drupal/core": "^9.4 || ^10",
"drupal/core": "^9.4 || ^10 || ^11",
"drupal/token": "^1.0",
"php": ">=8.0"
},
"require-dev": {
"drupal/devel": "^4.0 || ^5.0",
"drupal/hal": "^9 || ^1 || ^2",
"drupal/hal": "^1 || ^2 || ^9",
"drupal/metatag_dc": "*",
"drupal/metatag_open_graph": "*",
"drupal/page_manager": "^4.0",
"drupal/redirect": "^1.0",
"drupal/webprofiler": "^9 || ^10",
"ergebnis/composer-normalize": "*",
"mpyw/phpunit-patch-serializable-comparison": "*"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "2.0.0",
"datestamp": "1692368265",
"version": "2.0.2",
"datestamp": "1722869772",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
},
"composer-normalize": {
"indent-size": 2,
"indent-style": "space"
}
},
"installation-source": "dist",
......
......@@ -3,7 +3,7 @@
'name' => 'osu-asc-webservices/d8-upstream',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '95bc84d8582ade2a962640f92cd1496d54d37c56',
'reference' => 'd85ef4c34240e822ad3c5a4a0b68dfdd51dec002',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
......@@ -881,9 +881,9 @@
'dev_requirement' => false,
),
'drupal/metatag' => array(
'pretty_version' => '2.0.0',
'version' => '2.0.0.0',
'reference' => '2.0.0',
'pretty_version' => '2.0.2',
'version' => '2.0.2.0',
'reference' => '2.0.2',
'type' => 'drupal-module',
'install_path' => __DIR__ . '/../../web/modules/metatag',
'aliases' => array(),
......@@ -1555,7 +1555,7 @@
'osu-asc-webservices/d8-upstream' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '95bc84d8582ade2a962640f92cd1496d54d37c56',
'reference' => 'd85ef4c34240e822ad3c5a4a0b68dfdd51dec002',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
......
Acquia
alexa
applinks
Barfoo
bla'bleblu
blable
bleblu
breen
CDTF
checkall
cilefen
cleartype
ctools
Cxense
DCMI
DCMITYPE
dcterms
deeplinking
donottrack
dont
eengi
encodeded
ergebnis
ERRORPAGE
esource
Geertruyen
getentity
getroute
Globant
googleplay
handheldfriendly
Inheritence
inkscape
Juampy
Kandelaars
Kenna
LAUJ
linkcheckerlink
Maxlenth
Mediacurrent
metatagd
Metatagtrimmer
mobileoptimized
msapplication
Mscw
msvalidate
mtid
navbutton
neede
Nikhilesh
noarchive
nodeword
nodewords
nodewordsd
nohover
noimageindex
noodp
nopagereadaloud
Nopin
nopin
nosearch
nositelinkssearchbox
Novillo
noydir
Olivas
opengraph
precomposed
Rakesh
Requena
Rowlands
safeweb
scrollheight
scrollheightvalue
shorturl
sitelinks
siwecos
siwecostoken
starturl
straem
Tagtrimmer
tilecolor
tileimage
tnid
tobe
trid
trimlengths
trimmable
unaliased
Uzcw
waldomero
webform
xdefault
YFMEKD
Yoast
Yxuz
......@@ -57,7 +57,7 @@ rules:
no-case-declarations: 2
no-div-regex: 2
no-else-return: 0
no-empty-label: 2
no-empty-label: 0
no-empty-pattern: 2
no-eq-null: 2
no-eval: 2
......
################
# DrupalCI GitLabCI template
#
# Gitlab-ci.yml to replicate DrupalCI testing for Contrib
#
# With thanks to:
# * The GitLab Acceleration Initiative participants
# * DrupalSpoons
################
################
# Guidelines
#
# This template is designed to give any Contrib maintainer everything they need to test, without requiring modification. It is also designed to keep up to date with Core Development automatically through the use of include files that can be centrally maintained.
#
# However, you can modify this template if you have additional needs for your project.
################
################
# Includes
#
# Additional configuration can be provided through includes.
# One advantage of include files is that if they are updated upstream, the changes affect all pipelines using that include.
#
# Includes can be overridden by re-declaring anything provided in an include, here in gitlab-ci.yml
# https://docs.gitlab.com/ee/ci/yaml/includes.html#override-included-configuration-values
################
include:
################
# DrupalCI includes:
# As long as you include this, any future includes added by the Drupal Association will be accessible to your pipelines automatically.
# View these include files at https://git.drupalcode.org/project/gitlab_templates/
################
- project: $_GITLAB_TEMPLATES_REPO
# "ref" value can be:
# - Recommended (default) - `ref: $_GITLAB_TEMPLATES_REF` - The Drupal Association will update this value to the recommended tag for contrib.
# - Latest - `ref: main` - Get the latest additions and bug fixes as they are merged into the templates.
# - Minor or Major latests - `ref: 1.x-latest` or `ref: 1.0.x-latest` - Get the latest additions within a minor (mostly bugfixes) or major (bugs and new features).
# - Fixed tag - `ref: 1.0.1` - Set the value to a known tag. This will not get any updates.
# If you change the default value of ref, you should set the _CURL_TEMPLATES_REF variable in the variables section to be the same as set here.
ref: $_GITLAB_TEMPLATES_REF
file:
- "/includes/include.drupalci.main.yml"
# For Drupal 7, remove the above line and uncomment the below.
# - "/includes/include.drupalci.main-d7.yml"
- "/includes/include.drupalci.variables.yml"
- "/includes/include.drupalci.workflows.yml"
#
################
# Pipeline configuration variables
#
# These are the variables provided to the Run Pipeline form that a user may want to override.
#
# Docs at https://git.drupalcode.org/project/gitlab_templates/-/blob/main/includes/include.drupalci.variables.yml
################
variables:
# Run tests in parallel.
_PHPUNIT_CONCURRENT: 1
# Run tests against the previous and next core minor releases, to help make
# sure small changes don't break anything too quickly.
OPT_IN_TEST_NEXT_MINOR: 1
OPT_IN_TEST_PREVIOUS_MINOR: 1
# Don't allow failures from coding standards tests.
cspell:
allow_failure: false
phpcs:
allow_failure: false
# @todo Fix all phpstan issues.
# phstan:
# allow_failure: false
stylelint:
allow_failure: false
###################################################################################
#
# *
# /(
# ((((,
# /(((((((
# ((((((((((*
# ,(((((((((((((((
# ,(((((((((((((((((((
# ((((((((((((((((((((((((*
# *(((((((((((((((((((((((((((((
# ((((((((((((((((((((((((((((((((((*
# *(((((((((((((((((( .((((((((((((((((((
# ((((((((((((((((((. /(((((((((((((((((*
# /((((((((((((((((( .(((((((((((((((((,
# ,(((((((((((((((((( ((((((((((((((((((
# .(((((((((((((((((((( .(((((((((((((((((
# ((((((((((((((((((((((( ((((((((((((((((/
# (((((((((((((((((((((((((((/ ,(((((((((((((((*
# .((((((((((((((/ /(((((((((((((. ,(((((((((((((((
# *(((((((((((((( ,(((((((((((((/ *((((((((((((((.
# ((((((((((((((, /(((((((((((((. ((((((((((((((,
# (((((((((((((/ ,(((((((((((((* ,(((((((((((((,
# *((((((((((((( .((((((((((((((( ,(((((((((((((
# ((((((((((((/ /((((((((((((((((((. ,((((((((((((/
# ((((((((((((( *(((((((((((((((((((((((* *((((((((((((
# ((((((((((((( ,(((((((((((((..((((((((((((( *((((((((((((
# ((((((((((((, /((((((((((((* /((((((((((((/ ((((((((((((
# ((((((((((((( /((((((((((((/ (((((((((((((* ((((((((((((
# (((((((((((((/ /(((((((((((( ,((((((((((((, *((((((((((((
# (((((((((((((( *(((((((((((/ *((((((((((((. ((((((((((((/
# *((((((((((((((((((((((((((, /(((((((((((((((((((((((((
# ((((((((((((((((((((((((( ((((((((((((((((((((((((,
# .(((((((((((((((((((((((/ ,(((((((((((((((((((((((
# ((((((((((((((((((((((/ ,(((((((((((((((((((((/
# *((((((((((((((((((((( (((((((((((((((((((((,
# ,(((((((((((((((((((((, ((((((((((((((((((((/
# ,(((((((((((((((((((((* /((((((((((((((((((((
# ((((((((((((((((((((((, ,/((((((((((((((((((((,
# ,(((((((((((((((((((((((((((((((((((((((((((((((((((
# .(((((((((((((((((((((((((((((((((((((((((((((
# .((((((((((((((((((((((((((((((((((((,.
# .,(((((((((((((((((((((((((.
#
################################################################################
Metatag 2.0.2, 2024-08-05
-------------------------
#3465991 by podarok, DamienMcKenna: Allow installation on Drupal 11 via
composer.json.
Metatag 2.0.1, 2024-08-05
-------------------------
#3370486 by DamienMcKenna, arti_parmar: Use second argument on all unserialize()
calls.
#3386862 by DamienMcKenna: Additional entity types to ignore.
#3390226 by DamienMcKenna: Normalize the composer.json file using
ergebnis/composer-normalize.
#3408825 by DamienMcKenna: Remove Devel, WebProfiler tests.
#3413633 by Nikolay Shapovalov, DamienMcKenna, Mingsong: Fix tests for,
compatibility with Drupal 10.2.
#3404463 by pilot3, DamienMcKenna, Nikolay Shapovalov, naveenvalecha: Add Gitlab
CI test file.
#3421648 by morgannc, DamienMcKenna: Fixed some coding standards issues.
#3423881 by DamienMcKenna: Merge NodeTranslation into
MetatagNodeTranslationTest.
#3433055 by DamienMcKenna: Fixed test filenames.
#3447058 by DamienMcKenna: Update info files for Drupal 11.
#3462134 by ankitv18, DamienMcKenna: Fix phpcs and cspell issues.
#3454762 by johnjw59@gmail.com, DamienMcKenna: Page Manager meta tags added
twice.
#3460593 by DamienMcKenna, porchlight, acbramley: Update MetatagFieldBuilder
::build for compatibility with Diff v2.
#3423428 by DamienMcKenna, naveenvalecha: cspell, stylelint coding standards
fixes.
Metatag 2.0.0, 2023-06-27
-------------------------
#3364475 by DamienMcKenna: Update scripts to convert JSON data on revision
......
......@@ -361,6 +361,16 @@ the page check, to see if the html.html.twig instead contains this:
To fix this, simply change that line back to `{{ page }}` and it should work.
## Contributing
The `composer.json` file should be kept normalized using
`ergebnis/composer-normalize`:
* `composer require --dev ergebnis/composer-normalize`
* `composer normalize modules/contrib/metatag/composer.json`
## Maintainers / credits / contact
Currently maintained by [Damien
......
{
"name": "drupal/metatag",
"description": "Manage meta tags for all entities.",
"type": "drupal-module",
"license": "GPL-2.0-or-later",
"type": "drupal-module",
"keywords": [
"Drupal",
"seo"
],
"homepage": "https://www.drupal.org/project/metatag",
"authors": [
{
"name": "See contributors",
......@@ -15,23 +14,29 @@
"role": "Developer"
}
],
"minimum-stability": "dev",
"homepage": "https://www.drupal.org/project/metatag",
"support": {
"issues": "https://www.drupal.org/project/issues/metatag",
"source": "https://git.drupalcode.org/project/metatag",
"docs": "https://www.drupal.org/docs/8/modules/metatag"
},
"require": {
"drupal/core": "^9.4 || ^10",
"drupal/token": "^1.0",
"php": ">=8.0"
"php": ">=8.0",
"drupal/core": "^9.4 || ^10 || ^11",
"drupal/token": "^1.0"
},
"require-dev": {
"drupal/devel": "^4.0 || ^5.0",
"drupal/hal": "^9 || ^1 || ^2",
"drupal/redirect": "^1.0",
"drupal/hal": "^1 || ^2 || ^9",
"drupal/page_manager": "^4.0",
"drupal/webprofiler": "^9 || ^10",
"drupal/redirect": "^1.0",
"ergebnis/composer-normalize": "*",
"mpyw/phpunit-patch-serializable-comparison": "*"
},
"minimum-stability": "dev",
"extra": {
"composer-normalize": {
"indent-size": 2,
"indent-style": "space"
}
}
}
......@@ -4,6 +4,6 @@
*/
.metatags {
max-height: 500px;
overflow-y: overlay;
max-height: 500px;
}
name: Metatag
type: module
description: Manage meta tags for all entities.
core_version_requirement: '^9.4 || ^10'
core_version_requirement: '^9.4 || ^10 || ^11'
package: SEO
php: 8.0
configure: entity.metatag_defaults.collection
dependencies:
- drupal:field
- token:token
test_dependencies:
- devel:devel
# Information added by Drupal.org packaging script on 2023-06-27
version: '2.0.0'
# Information added by Drupal.org packaging script on 2024-08-05
version: '2.0.2'
project: 'metatag'
datestamp: 1687856985
datestamp: 1722869775
......@@ -5,6 +5,7 @@
* Contains metatag.module.
*/
use Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\ProductDisplay;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
use Drupal\Component\Plugin\Factory\DefaultFactory;
use Drupal\Component\Serialization\Json;
......@@ -16,6 +17,7 @@
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Url;
use Drupal\migrate\Plugin\migrate\destination\EntityContentBase;
use Drupal\migrate\Plugin\MigrateSourceInterface;
......@@ -28,8 +30,6 @@
use Drupal\taxonomy\TermInterface;
use Drupal\user\Plugin\migrate\source\d6\User as User6;
use Drupal\user\Plugin\migrate\source\d7\User as User7;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\ProductDisplay;
/**
* Implements hook_help().
......@@ -95,6 +95,10 @@ function metatag_form_field_config_edit_form_alter(&$form, FormStateInterface $f
$form['default_value']['#access'] = FALSE;
$form['default_value']['#disabled'] = TRUE;
// Hide the cardinality field.
$form['cardinality_container']['#access'] = FALSE;
$form['cardinality_container']['#disabled'] = TRUE;
// Step through the default value structure and erase any '#default_value'
// items that are found.
foreach ($form['default_value']['widget'][0] as &$outer) {
......@@ -950,6 +954,21 @@ function _metatag_is_migration_plugin_supported(array $definition) {
'shortcut_set_users',
'url_alias',
'user_data',
// Various contrib modules.
'entity:commerce_order',
'entity:commerce_payment',
'entity:commerce_payment_method',
'entity:commerce_promotion',
'entity:commerce_promotion_coupon',
'entity:commerce_shipment',
'entity:commerce_shipping_method',
'entity:commerce_stock_location',
'entity:commerce_store',
'entity:linkcheckerlink',
'entity:path_alias',
'entity:redirect',
'entity:salesforce_mapped_object',
'entity:webform_submission',
];
if (in_array($definition['destination']['plugin'], $destinations_to_ignore)) {
return FALSE;
......
......@@ -130,7 +130,6 @@ function metatag_post_update_convert_author_config(&$sandbox) {
* The author meta tag was moved into the main module: entity data.
*/
function metatag_post_update_convert_author_data(&$sandbox) {
$entity_type_manager = \Drupal::entityTypeManager();
$database = \Drupal::database();
// This whole top section only needs to be done the first time.
......@@ -195,7 +194,7 @@ function metatag_post_update_convert_author_data(&$sandbox) {
// Strip any empty tags or ones matching the field's defaults and leave
// only the overridden tags in $new_tags.
$tags = unserialize($record->$field_value_field);
$tags = unserialize($record->$field_value_field, ['allowed_classes' => FALSE]);
if (isset($tags['google_plus_author'])) {
$tags['author'] = $tags['google_plus_author'];
$tags_string = serialize($tags);
......@@ -247,7 +246,6 @@ function metatag_post_update_convert_author_data(&$sandbox) {
* Remove 'noydir', 'noodp' ROBOTS options from meta tag entity fields.
*/
function metatag_post_update_remove_robots_noydir_noodp(&$sandbox) {
$entity_type_manager = \Drupal::entityTypeManager();
$database = \Drupal::database();
// This whole top section only needs to be done the first time.
......@@ -377,7 +375,6 @@ function metatag_post_update_remove_robots_noydir_noodp(&$sandbox) {
* Convert all fields to use JSON storage.
*/
function metatag_post_update_v2_01_change_fields_to_json(&$sandbox) {
$entity_type_manager = \Drupal::entityTypeManager();
$database = \Drupal::database();
// This whole top section only needs to be done the first time.
......@@ -444,23 +441,23 @@ function metatag_post_update_v2_01_change_fields_to_json(&$sandbox) {
// @todo Remove tags matching the defaults and leave overridden values.
if (substr($record->$field_value_field, 0, 2) === 'a:') {
$tags = @unserialize($record->$field_value_field, ['allowed_classes' => FALSE]);
if (is_array($tags)) {
$tags_string = Json::encode($tags);
$database->update($field_table)
->fields([
$field_value_field => $tags_string,
])
->condition('entity_id', $record->entity_id)
->condition('revision_id', $record->revision_id)
->condition('langcode', $record->langcode)
->execute();
}
$counter++;
}
else {
throw new UpdateException("It seems like there was a problem with the data. The update script should probably be improved to better handle these scenarios.");
}
if (is_array($tags)) {
$tags_string = Json::encode($tags);
$database->update($field_table)
->fields([
$field_value_field => $tags_string,
])
->condition('entity_id', $record->entity_id)
->condition('revision_id', $record->revision_id)
->condition('langcode', $record->langcode)
->execute();
}
$counter++;
}
if (empty($counter)) {
$sandbox['current_field']++;
......@@ -493,7 +490,6 @@ function metatag_post_update_v2_01_change_fields_to_json(&$sandbox) {
* Remove meta tags entity values that were removed in v2.
*/
function metatag_post_update_v2_02_remove_entity_values(array &$sandbox) {
$entity_type_manager = \Drupal::entityTypeManager();
$database = \Drupal::database();
$metatags_to_remove = [
......
name: 'Metatag: App Links'
type: module
description: Provides support for applinks.org meta tags.
core_version_requirement: '^9.4 || ^10'
core_version_requirement: '^9.4 || ^10 || ^11'
package: SEO
dependencies:
- metatag:metatag
# Information added by Drupal.org packaging script on 2023-06-27
version: '2.0.0'
# Information added by Drupal.org packaging script on 2024-08-05
version: '2.0.2'
project: 'metatag'
datestamp: 1687856985
datestamp: 1722869775
name: 'Metatag: Dublin Core'
type: module
description: Provides the fifteen <a href="https://dublincore.org/documents/dces/">Dublin Core Metadata Element Set 1.1</a> meta tags from the <a href="https://dublincore.org/">Dublin Core Metadata Institute</a>.
core_version_requirement: '^9.4 || ^10'
core_version_requirement: '^9.4 || ^10 || ^11'
package: SEO
dependencies:
- metatag:metatag
# Information added by Drupal.org packaging script on 2023-06-27
version: '2.0.0'
# Information added by Drupal.org packaging script on 2024-08-05
version: '2.0.2'
project: 'metatag'
datestamp: 1687856985
datestamp: 1722869775
name: 'Metatag: Dublin Core Advanced'
type: module
description: 'Provides forty additional meta tags from the <a href="https://dublincore.org/">Dublin Core Metadata Institute</a>.'
core_version_requirement: '^9.4 || ^10'
core_version_requirement: '^9.4 || ^10 || ^11'
package: SEO
dependencies:
- metatag:metatag
- metatag:metatag_dc
# Information added by Drupal.org packaging script on 2023-06-27
version: '2.0.0'
# Information added by Drupal.org packaging script on 2024-08-05
version: '2.0.2'
project: 'metatag'
datestamp: 1687856985
datestamp: 1722869775
......@@ -49,7 +49,11 @@ function mysite_update_9001() {
// Look for permissions that started with the old permission string.
if (strpos($perm, 'access metatag tag') !== FALSE) {
// Grand the new permission.
$role->grantPermission(str_replace('access metatag tag', 'access metatag', $perm));
$role->grantPermission(
str_replace(
'access metatag tag', 'access metatag', $perm
)
);
// Track that the role's permissions changed.
$changed = TRUE;
......
name: Metatag Extended Permissions
type: module
description: "Adds individual permissions for each meta tag, allowing for fine-grained access to the meta tags. Note: this may lead to performance issues on the permissions admin page, please see the included README.txt file for details."
core_version_requirement: '^9.4 || ^10'
core_version_requirement: '^9.4 || ^10 || ^11'
package: SEO
dependencies:
- metatag:metatag
# Information added by Drupal.org packaging script on 2023-06-27
version: '2.0.0'
# Information added by Drupal.org packaging script on 2024-08-05
version: '2.0.2'
project: 'metatag'
datestamp: 1687856985
datestamp: 1722869775
......@@ -2,9 +2,10 @@
namespace Drupal\Tests\metatag_extended_perms\Functional;
use Drupal\node\Entity\NodeType;
use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\field_ui\Traits\FieldUiTestTrait;
use Drupal\Tests\metatag\Functional\MetatagHelperTrait;
use Drupal\node\Entity\NodeType;
/**
* Verify the new permissions are added.
......@@ -14,6 +15,7 @@
class PermissionsTest extends BrowserTestBase {
// Contains helper methods.
use FieldUiTestTrait;
use MetatagHelperTrait;
/**
......@@ -198,15 +200,7 @@ protected function createContentType(array $values = []): NodeType {
$this->drupalGet('node/add/page');
// Add a metatag field to the entity type test_entity.
$this->drupalGet('admin/structure/types/manage/page/fields/add-field');
$this->assertSession()->statusCodeEquals(200);
$edit = [
'label' => 'Metatag',
'field_name' => 'metatag',
'new_storage_type' => 'metatag',
];
$this->submitForm($edit, 'Save and continue');
$this->submitForm([], 'Save field settings');
$this->fieldUIAddNewField('admin/structure/types/manage/page', 'metatag', 'Metatag', 'metatag');
// Clear all settings.
$this->container->get('entity_field.manager')->clearCachedFieldDefinitions();
......
name: 'Metatag: Facebook'
type: module
description: A set of meta tags specially for controlling advanced functionality with Facebook.
core_version_requirement: '^9.4 || ^10'
core_version_requirement: '^9.4 || ^10 || ^11'
package: SEO
dependencies:
- metatag:metatag
# Information added by Drupal.org packaging script on 2023-06-27
version: '2.0.0'
# Information added by Drupal.org packaging script on 2024-08-05
version: '2.0.2'
project: 'metatag'
datestamp: 1687856985
datestamp: 1722869775
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