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

Breadcrumb

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

function DirectoryLoader::supports

Same name in this branch
  1. 11.1.x vendor/symfony/routing/Loader/DirectoryLoader.php \Symfony\Component\Routing\Loader\DirectoryLoader::supports()

File

vendor/symfony/dependency-injection/Loader/DirectoryLoader.php, line 42

Class

DirectoryLoader
DirectoryLoader is a recursive loader to go through directories.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

public function supports(mixed $resource, ?string $type = null) : bool {
    if ('directory' === $type) {
        return true;
    }
    return null === $type && \is_string($resource) && str_ends_with($resource, '/');
}

API Navigation

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