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

Breadcrumb

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

function Definition::setFile

Sets a file to require before creating the service.

Return value

$this

File

vendor/symfony/dependency-injection/Definition.php, line 495

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setFile(?string $file) : static {
    $this->changes['file'] = true;
    $this->file = $file;
    return $this;
}
RSS feed
Powered by Drupal