function IconFinderInterface::getFileContents

Wrapper to the file_get_contents function.

This allow usage in extractor and easier unit test.

Parameters

string $uri: The URI to process, only local path allowed.

Return value

string|bool The file content.

1 method overrides IconFinderInterface::getFileContents()
IconFinder::getFileContents in core/lib/Drupal/Core/Theme/Icon/IconFinder.php
Wrapper to the file_get_contents function.

File

core/lib/Drupal/Core/Theme/Icon/IconFinderInterface.php, line 39

Class

IconFinderInterface
Interface for icon finder.

Namespace

Drupal\Core\Theme\Icon

Code

public function getFileContents(string $uri) : string|bool;

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