Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello @DamienMcKenna,
There is one small syntax problem in function form(array $element = array()) (Line 163 of src\Plugin\metatag\Tag\MetaNameBase.php)
I think this "if" condition is not perfect:
// Optional handling for images.
if (!empty($this->type() === 'image')) {
This should be:
// Optional handling for images.
if ((!empty($this->type())) && ($this->type() === 'image')) {
I have created a patch file, please review it and provide your thoughts on this.
Thank you,
Comment | File | Size | Author |
---|---|---|---|
fixed-small-syntax-error.patch | 728 bytes | ashwinsh | |
|
Comments
Comment #2
ashwinshComment #4
DamienMcKennaCommitted. Thanks!