You are here

public function ProjectCollectorInterface::loadProject in Upgrade Status 8

Returns a single extension based on type and machine name.

Parameters

string $type: One of 'module' or 'theme' or 'profile' to signify the type of the extension.

string $project_machine_name: Machine name for the extension.

Return value

\Drupal\Core\Extension\Extension A project if exists.

Throws

\InvalidArgumentException If the type was not one of the allowed ones.

\Drupal\Core\Extension\Exception\UnknownExtensionException If there was no extension with the given name.

1 method overrides ProjectCollectorInterface::loadProject()
ProjectCollector::loadProject in src/ProjectCollector.php
Returns a single extension based on type and machine name.

File

src/ProjectCollectorInterface.php, line 39

Class

ProjectCollectorInterface
Provides an interface for project collection.

Namespace

Drupal\upgrade_status

Code

public function loadProject(string $type, string $project_machine_name);