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

Breadcrumb

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

function FileTrait::file

Sets a file to require before creating the service.

Return value

$this

File

vendor/symfony/dependency-injection/Loader/Configurator/Traits/FileTrait.php, line 21

Class

FileTrait

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator\Traits

Code

public final function file(string $file) : static {
    $this->definition
        ->setFile($file);
    return $this;
}

API Navigation

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