public function getKeyword($keyword)
    {
        $k = $this->getAvailableKeywords();

        if ($keyword == 'Link') {
            $link = Director::makeRelative($this->owner->Link());

            return Controller::join_links(Director::absoluteBaseURL(), $link);
        }

        if (isset($k[$keyword])) {
            return $this->owner->$keyword;
        }

        return;
    }
public function getKeyword($keyword)
    {
        $k = $this->getAvailableKeywords();

        if ($keyword == 'Link') {
            $link = Director::makeRelative($this->owner->Link());

            return Controller::join_links(Director::absoluteBaseURL(), $link);
        }

        if (isset($k[$keyword])) {
            return $this->owner->$keyword;
        }

        return;
    }
public function getKeyword ( $ keyword ) { $ k = $ this -> getAvailableKeywords ( ) ; if ( $ keyword == 'Link' ) { $ link = Director :: makeRelative ( $ this -> owner -> Link ( ) ) ; return Controller :: join_links ( Director :: absoluteBaseURL ( ) , $ link ) ; } if ( isset ( $ k [ $ keyword ] ) ) { return $ this -> owner -> $ keyword ; } return ; }
Gets a replacement for a keyword

@param  $keyword
@return string
Gets a replacement for a keyword