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

Breadcrumb

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

function IniFileLoader::supports

File

vendor/symfony/dependency-injection/Loader/IniFileLoader.php, line 58

Class

IniFileLoader
IniFileLoader loads parameters from INI files.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

public function supports(mixed $resource, ?string $type = null) : bool {
    if (!\is_string($resource)) {
        return false;
    }
    if (null === $type && 'ini' === pathinfo($resource, \PATHINFO_EXTENSION)) {
        return true;
    }
    return 'ini' === $type;
}

API Navigation

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