Themosis\Asset\Asset::inline PHP Method

inline() public method

Default to "after".
public inline ( string $data, string $position = 'after' ) : Asset
$data string The inline code to output.
$position string Accepts "after" or "before" as values. Note that position is only working for JS assets.
return Asset
    public function inline($data, $position = 'after')
    {
        if ('script' === $this->type) {
            $args = ['data' => $data, 'position' => $position];
        } elseif ('style' === $this->type) {
            $args = ['data' => $data];
        }
        $this->args['inline'][] = $args;
        return $this;
    }