function Extension::load
Same name in this branch
- 11.1.x core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::load()
Loads the main extension file, if any.
Return value
bool TRUE if this extension has a main extension file, FALSE otherwise.
File
-
vendor/
mglaman/ phpstan-drupal/ src/ Drupal/ Extension.php, line 186
Class
- Extension
- Defines an extension (file) object.
Namespace
mglaman\PHPStanDrupal\DrupalCode
public function load() : bool {
if ($this->filename !== null) {
include_once $this->root . '/' . $this->getPath() . '/' . $this->filename;
return true;
}
return false;
}