FluidXml\FluidInsertionHandler::insertSpecialContent PHP Method

insertSpecialContent() protected method

protected insertSpecialContent ( $parent, $k, $v )
    protected function insertSpecialContent($parent, $k, $v)
    {
        // The user has passed an element text content:
        // [ '@' => 'Element content.' ]
        // Algorithm 1:
        $this->newContext($parent)->addText($v);
        // Algorithm 2:
        // $this->setText($v);
        // The user can specify multiple '@' special elements
        // so Algorithm 1 is the right choice.
        return [];
    }