function TokenConverter::applies

File

webprofiler/src/Routing/TokenConverter.php, line 40

Class

TokenConverter
Class TokenConverter

Namespace

Drupal\webprofiler\Routing

Code

public function applies($definition, $name, Route $route) {
    if (!empty($definition['type']) && $definition['type'] === 'webprofiler:token') {
        return TRUE;
    }
    return FALSE;
}