CoreApi: provide active stage name
This commit is contained in:
parent
3d20e55748
commit
776cd98253
|
@ -42,6 +42,11 @@ class CoreApi
|
||||||
return $this->client->get('config/packages')->getResult('name');
|
return $this->client->get('config/packages')->getResult('name');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getActiveStageName()
|
||||||
|
{
|
||||||
|
return current($this->listModuleStages('director', true));
|
||||||
|
}
|
||||||
|
|
||||||
public function listModuleStages($name, $active = null)
|
public function listModuleStages($name, $active = null)
|
||||||
{
|
{
|
||||||
$modules = $this->getModules();
|
$modules = $this->getModules();
|
||||||
|
|
Loading…
Reference in New Issue