You are here

public function FeaturesManagerInterface::loadPackage in Features 8.4

Same name and namespace in other branches
  1. 8.3 src/FeaturesManagerInterface.php \Drupal\features\FeaturesManagerInterface::loadPackage()

Load a specific package.

Similar to getPackage but can also load modules that are not Features.

Parameters

string $module_name: Full machine name of module.

bool $any: If TRUE then check for any module, not just a Features module.

Return value

\Drupal\features\Package Package data.

1 method overrides FeaturesManagerInterface::loadPackage()
FeaturesManager::loadPackage in src/FeaturesManager.php
Load a specific package.

File

src/FeaturesManagerInterface.php, line 195

Class

FeaturesManagerInterface
Provides an interface for the FeaturesManager.

Namespace

Drupal\features

Code

public function loadPackage($module_name, $any = FALSE);