function Dependency::getName

Same name in other branches
  1. 8.9.x 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()
  3. 11.x core/lib/Drupal/Core/Extension/Dependency.php \Drupal\Core\Extension\Dependency::getName()

Gets the dependency's name.

Return value

string The dependency's name.

File

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

Class

Dependency
A value object representing dependency information.

Namespace

Drupal\Core\Extension

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.