function IconFinder::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Theme/Icon/IconFinder.php \Drupal\Core\Theme\Icon\IconFinder::__construct()

Constructs a new IconFinder object.

Parameters

\Drupal\Core\File\FileUrlGeneratorInterface $fileUrlGenerator: The file URL generator service.

\Psr\Log\LoggerInterface $logger: A logger instance.

string $appRoot: The application root.

File

core/lib/Drupal/Core/Theme/Icon/IconFinder.php, line 105

Class

IconFinder
Icon finder to discover files under specific paths or URLs.

Namespace

Drupal\Core\Theme\Icon

Code

public function __construct(private readonly FileUrlGeneratorInterface $fileUrlGenerator, private readonly LoggerInterface $logger, private readonly string $appRoot) {
}

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