You are here

public function Extension::getName in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::getName()

Returns the internal name of the extension.

Return value

string

File

lib/Drupal/Core/Extension/Extension.php, line 86
Contains \Drupal\Core\Extension\Extension.

Class

Extension
Defines an extension (file) object.

Namespace

Drupal\Core\Extension

Code

public function getName() {
  return basename($this->pathname, '.info.yml');
}