src/Cms/ContextualTemplateTrait.php
public function contextObject()
    {
        if ($this->contextObject === null) {
            $this->contextObject = $this->createGenericContext();
        }

        return $this->contextObject;
    }
public function contextObject()
    {
        if ($this->contextObject === null) {
            $this->contextObject = $this->createGenericContext();
        }

        return $this->contextObject;
    }
public function contextObject ( ) { if ( $ this -> contextObject === null ) { $ this -> contextObject = $ this -> createGenericContext ( ) ; } return $ this -> contextObject ; }
Retrieve the current object relative to the context.

This method is meant to be reimplemented in a child template controller
to return the resolved object that the module considers "the context".

@return ModelInterface|null
Retrieve the current object relative to the context .