SubscriberBase.php

Same filename and directory in other branches
  1. 11.x core/tests/Drupal/TestTools/Extension/HtmlLogging/SubscriberBase.php

Namespace

Drupal\TestTools\Extension\HtmlLogging

File

core/tests/Drupal/TestTools/Extension/HtmlLogging/SubscriberBase.php

View source
<?php

declare (strict_types=1);
namespace Drupal\TestTools\Extension\HtmlLogging;


/**
 * Base class for PHPUnit event subscribers related to HTML logging.
 *
 * @internal
 */
abstract class SubscriberBase {
  public function __construct(private readonly HtmlOutputLogger $logger) {
  }
  protected function logger() : HtmlOutputLogger {
    return $this->logger;
  }

}

Classes

Title Deprecated Summary
SubscriberBase Base class for PHPUnit event subscribers related to HTML logging.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.