function 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\Extension

Code

public function getType() {
  return $this->type;
}

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