Fatal error: Cannot declare class Drupal\field_group\Plugin\field_group\FieldGroupFormatter\HtmlElement because the name is already in use in /home/***/public_html/***/web/modules/contrib/field_group/src/Plugin/field_group/FieldGroupFormatter/HtmlElement.php on line 24

3bfa79dade0f499519417c98eff52e2972fb2a6d Coding standard refactor causes this.

Comments

szantog created an issue. See original summary.

szantog’s picture

Status: Active » Needs review
StatusFileSize
new856 bytes
szantog’s picture

For composer users:

        "patches": {
            "drupal/field_group": {
                "Field groups cannot declare class HtmlElement": "https://www.drupal.org/files/issues/2018-07-07/2984382-1-cannot-redeclare-htmlelement.patch"
            }
srjosh’s picture

I ran into this same issue with Accordion.php .

  • zuuperman committed 4ea8487 on 8.x-3.x
    Issue #2984382 by szantog: Cannot declare class HtmlElement
    
nils.destoop’s picture

Status: Needs review » Fixed

All formatters should be ok again.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.