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

Breadcrumb

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

function YamlFileLoader::supports

Same name in this branch
  1. 11.1.x vendor/symfony/dependency-injection/Loader/YamlFileLoader.php \Symfony\Component\DependencyInjection\Loader\YamlFileLoader::supports()

File

vendor/symfony/routing/Loader/YamlFileLoader.php, line 108

Class

YamlFileLoader
YamlFileLoader loads Yaml routing files.

Namespace

Symfony\Component\Routing\Loader

Code

public function supports(mixed $resource, ?string $type = null) : bool {
    return \is_string($resource) && \in_array(pathinfo($resource, \PATHINFO_EXTENSION), [
        'yml',
        'yaml',
    ], true) && (!$type || 'yaml' === $type);
}

API Navigation

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