public static function renderLabel($model)
	{
		if($model->hasWorkflowStatus()) {
			$labelTemplate = $model->getWorkflowStatus()->getMetadata('labelTemplate');
			if( ! empty($labelTemplate)) {
				return strtr($labelTemplate, ['{label}' => $model->getWorkflowStatus()->getLabel()]);
			}
		}
		return null;
	}
public static function renderLabel($model)
	{
		if($model->hasWorkflowStatus()) {
			$labelTemplate = $model->getWorkflowStatus()->getMetadata('labelTemplate');
			if( ! empty($labelTemplate)) {
				return strtr($labelTemplate, ['{label}' => $model->getWorkflowStatus()->getLabel()]);
			}
		}
		return null;
	}
public static function renderLabel ( $ model ) { if ( $ model -> hasWorkflowStatus ( ) ) { $ labelTemplate = $ model -> getWorkflowStatus ( ) -> getMetadata ( 'labelTemplate' ) ; if ( ! empty ( $ labelTemplate ) ) { return strtr ( $ labelTemplate , [ '{label}' => $ model -> getWorkflowStatus ( ) -> getLabel ( ) ] ) ; } } return null ; }
Displays the status for the model passed as argument.

This method assumes that the status includes a metadata value called 'labelTemplate' that contains
the HTML template of the rendering status. In this template the string '{label}' will be replaced by the
status label.

Example :
<pre>
'status' => [
'draft' => [
'label' => 'Draft',
'transition' => ['ready' ],
'metadata' => [
'labelTemplate' => '<span class="label label-default">{label}</span>'
]
],
</pre>

@param BaseActiveRecord $model
@return string|NULL the HTML rendered status or null if not labelTemplate is found
Displays the status for the model passed as argument .