Bolt\Storage\Entity\ContentRouteTrait::getRouteConfig PHP Метод

getRouteConfig() защищенный Метод

Retrieves the first route applicable to the content as a two-element array consisting of the binding and the route array. Returns null if there is no applicable route.
protected getRouteConfig ( ) : array | null
Результат array | null
    protected function getRouteConfig()
    {
        $allroutes = $this->app['config']->get('routing');
        // First, try to find a custom route that's applicable
        foreach ($allroutes as $binding => $config) {
            if ($this->isApplicableRoute($config)) {
                return [$binding, $config];
            }
        }
        // Just return the 'generic' contentlink route.
        if (!empty($allroutes['contentlink'])) {
            return ['contentlink', $allroutes['contentlink']];
        }
        return null;
    }