You are here

public function Dependency::getName in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Extension/Dependency.php \Drupal\Core\Extension\Dependency::getName()
  2. 10 core/lib/Drupal/Core/Extension/Dependency.php \Drupal\Core\Extension\Dependency::getName()

Gets the dependency's name.

Return value

string The dependency's name.

1 call to Dependency::getName()
Dependency::offsetGet in core/lib/Drupal/Core/Extension/Dependency.php

File

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

Class

Dependency
A value object representing dependency information.

Namespace

Drupal\Core\Extension

Code

public function getName() {
  return $this->name;
}