Skip to content

Allow fetching default configuration object settings

Closes #3364285

Made change to BaseParser::getRenderStrategy(), so it should provide the default configuration object settings when the default instantiated plugin object does not provide a configuration array.

  /**
   * {@inheritdoc}
   */
  public function getRenderStrategy() {
    $id = $this->config()->get('id');
    $renderStrategy = $this->config()->get('render_strategy.type') ?: \Drupal::config("markdown.parser.$id")->get('render_strategy.type');
    return $renderStrategy ?: static::FILTER_OUTPUT;
  }

Merge request reports