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

Breadcrumb

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

function Dependency::__construct

Dependency constructor.

Parameters

string $name: The name of the dependency.

string $project: The project namespace for the dependency.

string $constraint: The constraint string. For example, '>8.x-1.1'.

File

core/lib/Drupal/Core/Extension/Dependency.php, line 50

Class

Dependency
A value object representing dependency information.

Namespace

Drupal\Core\Extension

Code

public function __construct($name, $project, $constraint) {
    $this->name = $name;
    $this->project = $project;
    $this->constraintString = $constraint;
}

API Navigation

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