function Extension::__construct
Same name in this branch
- 11.1.x vendor/phar-io/manifest/src/values/Extension.php \PharIo\Manifest\Extension::__construct()
- 11.1.x core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::__construct()
Constructs a new Extension object.
Parameters
string $root: The app root.
string $type: The type of the extension; e.g., 'module'.
string $pathname: The relative path and filename of the extension's info file; e.g., 'core/modules/node/node.info.yml'.
string $filename: (optional) The filename of the main extension file; e.g., 'node.module'.
File
-
vendor/
mglaman/ phpstan-drupal/ src/ Drupal/ Extension.php, line 93
Class
- Extension
- Defines an extension (file) object.
Namespace
mglaman\PHPStanDrupal\DrupalCode
public function __construct($root, $type, $pathname, $filename = null) {
$this->root = $root;
$this->type = $type;
$this->pathname = $pathname;
$this->filename = $filename;
}