service/components/contents/ContentStreamContext.php
/**
     * Adds value to option. Does not overwrite current option value
     *
     * @param string $wrapper
     * @param string $option
     * @param boolean
     */
Adds value to option. Does not overwrite current option value
@param string $wrapper
@param string $option
@param boolean
Adds value to option . Does not overwrite current option value @param string $wrapper @param string $option @param boolean
public function addOption($wrapper, $option, $value)
    {
        $optVal = $this->getOption($wrapper, $option);
        if (!is_array($optVal) && $optVal !== null) {
            $optVal = [$optVal];
        }
        if ($optVal !== null) {
            $optVal[] = $value;
        } else {
            $optVal = $value;
        }
        $this->setOption($wrapper, $option, $optVal);
    }
public function addOption ( $ wrapper , $ option , $ value ) { $ optVal = $ this -> getOption ( $ wrapper , $ option ) ; if ( ! is_array ( $ optVal ) && $ optVal !== null ) { $ optVal = [ $ optVal ] ; } if ( $ optVal !== null ) { $ optVal [ ] = $ value ; } else { $ optVal = $ value ; } $ this -> setOption ( $ wrapper , $ option , $ optVal ) ; }
Adds value to option.
Adds value to option .