protected function getDynamicCredits()
    {
        // Find best page to host user profiles
        $parent = $this->Parent();
        if (! ($parent instanceof Blog)) {
            $parent = Blog::get()->first();
        }

        // If there is no parent blog, return list undecorated
        if (!$parent) {
            $items = $this->Authors()->toArray();
            return ArrayList::create($items);
        }

        // Update all authors
        $items = ArrayList::create();
        foreach ($this->Authors() as $author) {
            // Add link for each author
            $author = $author->customise([
                'URL' => $parent->ProfileLink($author->URLSegment),
            ]);
            $items->push($author);
        }

        return $items;
    }
protected function getDynamicCredits()
    {
        // Find best page to host user profiles
        $parent = $this->Parent();
        if (! ($parent instanceof Blog)) {
            $parent = Blog::get()->first();
        }

        // If there is no parent blog, return list undecorated
        if (!$parent) {
            $items = $this->Authors()->toArray();
            return ArrayList::create($items);
        }

        // Update all authors
        $items = ArrayList::create();
        foreach ($this->Authors() as $author) {
            // Add link for each author
            $author = $author->customise([
                'URL' => $parent->ProfileLink($author->URLSegment),
            ]);
            $items->push($author);
        }

        return $items;
    }
protected function getDynamicCredits ( ) { // Find best page to host user profiles $ parent = $ this -> Parent ( ) ; if ( ! ( $ parent instanceof Blog ) ) { $ parent = Blog :: get ( ) -> first ( ) ; } // If there is no parent blog, return list undecorated if ( ! $ parent ) { $ items = $ this -> Authors ( ) -> toArray ( ) ; return ArrayList :: create ( $ items ) ; } // Update all authors $ items = ArrayList :: create ( ) ; foreach ( $ this -> Authors ( ) as $ author ) { // Add link for each author $ author = $ author -> customise ( [ 'URL' => $ parent -> ProfileLink ( $ author -> URLSegment ) , ] ) ; $ items -> push ( $ author ) ; } return $ items ; }
Resolves dynamic authors linked to this post.

@return ArrayList
Resolves dynamic authors linked to this post .