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

Breadcrumb

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

function AttributeFileLoader::supports

2 calls to AttributeFileLoader::supports()
AttributeDirectoryLoader::load in vendor/symfony/routing/Loader/AttributeDirectoryLoader.php
AttributeDirectoryLoader::load in vendor/symfony/routing/Loader/AttributeDirectoryLoader.php
1 method overrides AttributeFileLoader::supports()
AttributeDirectoryLoader::supports in vendor/symfony/routing/Loader/AttributeDirectoryLoader.php

File

vendor/symfony/routing/Loader/AttributeFileLoader.php, line 64

Class

AttributeFileLoader
AttributeFileLoader loads routing information from attributes set on a PHP class and its methods.

Namespace

Symfony\Component\Routing\Loader

Code

public function supports(mixed $resource, ?string $type = null) : bool {
    return \is_string($resource) && 'php' === pathinfo($resource, \PATHINFO_EXTENSION) && (!$type || 'attribute' === $type);
}
RSS feed
Powered by Drupal