ReplaceTokens::createTokensource PHP Method

createTokensource() public method

Adds a token source to the sources of this filter.
public createTokensource ( ) : object
return object A Reference to the source just added.
    function createTokensource()
    {
        $num = array_push($this->_tokensources, new TokenSource());
        return $this->_tokensources[$num - 1];
    }