/**
* Check if the context supports a specific functionality.
*
* @param string $context Context to check
* @param string $functionality The functionality
*
* @return boolean
*/
protected function checkExtensionSupport($context, $functionality)
{
$parts = explode('.', $context);
$component = $this->app->bootComponent($parts[0]);
if (!$component instanceof WorkflowServiceInterface || !$component->isWorkflowActive($context) || !$component->supportFunctionality($functionality, $context)) {
return false;
}
return true;
}