public function Drupal7::drupal_load in Service Container 7.2
Same name and namespace in other branches
- 7 src/Legacy/Drupal7.php \Drupal\service_container\Legacy\Drupal7::drupal_load()
Includes a file with the provided type and name.
This prevents including a theme, engine, module, etc., more than once.
Parameters
$type: The type of item to load (i.e. theme, theme_engine, module).
$name: The name of the item to load.
Return value
bool TRUE if the item is loaded or has already been loaded.
File
- src/
Legacy/ Drupal7.php, line 401 - Contains \Drupal\service_container\Legacy\Drupal7.
Class
- Drupal7
- Defines the Drupal 7 legacy service.
Namespace
Drupal\service_container\LegacyCode
public function drupal_load($type, $name) {
return drupal_load($type, $name);
}