public function Extension::getName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 86 - Contains \Drupal\Core\Extension\Extension.
Class
- Extension
- Defines an extension (file) object.
Namespace
Drupal\Core\ExtensionCode
public function getName() {
return basename($this->pathname, '.info.yml');
}