Sulu\Bundle\PreviewBundle\Preview\Object\PreviewObjectProviderInterface::setContext PHP Method

setContext() public method

Set given context to the object.
public setContext ( $object, string $locale, array $context ) : mixed
$object
$locale string
$context array
return mixed New object which will be saved for the session
    public function setContext($object, $locale, array $context);