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

Breadcrumb

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

function Definition::setClass

Sets the service class.

Return value

$this

1 call to Definition::setClass()
Definition::__construct in vendor/symfony/dependency-injection/Definition.php

File

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

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

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