TestTitleClosureAttributes.php

Namespace

Drupal\router_test\Controller

File

core/modules/system/tests/modules/router_test_directory/src/Controller/TestTitleClosureAttributes.php

View source
<?php

declare (strict_types=1);
namespace Drupal\router_test\Controller;


/**
 * Makes AttributeRouteDiscovery load this PHP-version bridge via #[Route].
 */
if (PHP_VERSION_ID >= 80500) {
  require_once dirname(__DIR__) . '/TestTitleClosureAttributesPhp85.php';
  class_alias(TestTitleClosureAttributesPhp85::class, TestTitleClosureAttributes::class);
}
else {
  
  /**
   * Satisfies the PSR-4 autoloader on PHP versions that cannot parse the fixture.
   */
  class TestTitleClosureAttributes {

}
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.