Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. IconFinderInterface.php

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;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal