Nette\Application\Routers\Route::getTargetPresenters PHP Method

getTargetPresenters() public method

Proprietary cache aim.
public getTargetPresenters ( ) : string[] | null
return string[] | null
    public function getTargetPresenters()
    {
        if ($this->flags & self::ONE_WAY) {
            return [];
        }
        $m = $this->metadata;
        $module = '';
        if (isset($m[self::MODULE_KEY])) {
            if (isset($m[self::MODULE_KEY]['fixity']) && $m[self::MODULE_KEY]['fixity'] === self::CONSTANT) {
                $module = $m[self::MODULE_KEY][self::VALUE] . ':';
            } else {
                return NULL;
            }
        }
        if (isset($m[self::PRESENTER_KEY]['fixity']) && $m[self::PRESENTER_KEY]['fixity'] === self::CONSTANT) {
            return [$module . $m[self::PRESENTER_KEY][self::VALUE]];
        }
        return NULL;
    }