SubformState contains 2 abstract methods

Created on 22 March 2023, over 1 year ago
Updated 4 July 2024, 4 months ago

Problem/Motivation

Fatal error: Class Drupal\markdown\BcSupport\SubformState contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Drupal\Core\Form\FormStateInterface::ignoreDestination, Drupal\Core\Form\FormStateInterface::getIgnoreDestination) in /var/www/docroot/modules/contrib/markdown/src/BcSupport/SubformState.php on line 16

Steps to reproduce

After installing markdown module and installing commonMark parser.
If you go to admin/config/content/formats and adds a new format or edits a existing format you will get the fatal error.

Proposed resolution

The SubformState class needs those two functions declared.

  /**
   * {@inheritdoc}
   */
  public function ignoreDestination($status = TRUE) {
    $this->ignoreDestination = $status;
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  public function getIgnoreDestination() {
    return $this->ignoreDestination;
  }
πŸ› Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Dan Kolbas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024