You are here

public function Extension::__construct in Service Container 7

Same name and namespace in other branches
  1. 7.2 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

lib/Drupal/Core/Extension/Extension.php, line 65
Contains \Drupal\Core\Extension\Extension.

Class

Extension
Defines an extension (file) object.

Namespace

Drupal\Core\Extension

Code

public function __construct($root, $type, $pathname, $filename = NULL) {
  $this->root = $root;
  $this->type = $type;
  $this->pathname = $pathname;
  $this->filename = $filename;
}