private function createAuthor()
    {
        $pattern = $this->config["author"];

        $index = [];
        $matches = [];
        foreach ($this->meta as $key => $entry) {
            if (preg_match($pattern, $key, $matches)) {
                $acronym = $matches[1];
                $index[$acronym] = $key;
                $this->meta[$key]["acronym"] = $acronym;
                $this->meta[$key]["url"] = $key;
                unset($this->meta[$key]["__toc__"]);

                // Get content for byline
                $route = "$key/byline";
                $data = $this->getDataForAdditionalRoute($route);
                $byline = isset($data["data"]["content"]) ? $data["data"]["content"] : null;
                $this->meta[$key]["byline"] = $byline;
            }
        }

        return $index;
    }
private function createAuthor()
    {
        $pattern = $this->config["author"];

        $index = [];
        $matches = [];
        foreach ($this->meta as $key => $entry) {
            if (preg_match($pattern, $key, $matches)) {
                $acronym = $matches[1];
                $index[$acronym] = $key;
                $this->meta[$key]["acronym"] = $acronym;
                $this->meta[$key]["url"] = $key;
                unset($this->meta[$key]["__toc__"]);

                // Get content for byline
                $route = "$key/byline";
                $data = $this->getDataForAdditionalRoute($route);
                $byline = isset($data["data"]["content"]) ? $data["data"]["content"] : null;
                $this->meta[$key]["byline"] = $byline;
            }
        }

        return $index;
    }
private function createAuthor ( ) { $ pattern = $ this -> config [ "author" ] ; $ index = [ ] ; $ matches = [ ] ; foreach ( $ this -> meta as $ key => $ entry ) { if ( preg_match ( $ pattern , $ key , $ matches ) ) { $ acronym = $ matches [ 1 ] ; $ index [ $ acronym ] = $ key ; $ this -> meta [ $ key ] [ "acronym" ] = $ acronym ; $ this -> meta [ $ key ] [ "url" ] = $ key ; unset ( $ this -> meta [ $ key ] [ "__toc__" ] ) ; // Get content for byline $ route = "$key/byline" ; $ data = $ this -> getDataForAdditionalRoute ( $ route ) ; $ byline = isset ( $ data [ "data" ] [ "content" ] ) ? $ data [ "data" ] [ "content" ] : null ; $ this -> meta [ $ key ] [ "byline" ] = $ byline ; } } return $ index ; }
Generate a lookup index for authors that maps into the meta entry
for the author.

@return void.
Generate a lookup index for authors that maps into the meta entry for the author .