Render a dropdown menu for external task providers

This commit is contained in:
Frederic Guillot
2017-10-12 14:01:39 -07:00
parent ad6f898134
commit 4bb422b41f
32 changed files with 109 additions and 3 deletions

View File

@@ -55,4 +55,14 @@ class ExternalTaskManager
return array();
}
/**
* Get all providers
*
* @return ExternalTaskProviderInterface[]
*/
public function getProviders()
{
return $this->providers;
}
}

View File

@@ -18,6 +18,22 @@ interface ExternalTaskProviderInterface
*/
public function getName();
/**
* Get provider icon
*
* @access public
* @return string
*/
public function getIcon();
/**
* Get label for adding a new task
*
* @access public
* @return string
*/
public function getMenuAddLabel();
/**
* Retrieve task from external system or cache
*