LatencyExtension

Extends \Twig\Extension\AbstractExtension

Class LatencyExtension extends Twig filters for color highlighting based on latency

package

App\Twig

Methods

Gets the Twig filters being registered

getFilters() : array

Response

array

Returns the calculated latency CSS color style

latencyColor(integer $latency) : string

Arguments

$latency

integer

Response

string

$color