public function Extension::getName in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::getName()
Returns the internal name of the extension.
Return value
string
File
- core/
lib/ Drupal/ Core/ Extension/ Extension.php, line 88
Class
- Extension
- Defines an extension (file) object.
Namespace
Drupal\Core\ExtensionCode
public function getName() {
return basename($this->pathname, '.info.yml');
}