function Extension::getType
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::getType()
- 8.9.x core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::getType()
- 10 core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::getType()
Returns the type of the extension.
Return value
string The extension type. This is usually 'module' or 'theme'.
File
-
core/
lib/ Drupal/ Core/ Extension/ Extension.php, line 88
Class
- Extension
- Defines an extension (file) object.
Namespace
Drupal\Core\ExtensionCode
public function getType() {
return $this->type;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.