public function autoLayout($autoLayout = null)
    {
        deprecationWarning(
            'View::autoLayout() is deprecated. ' .
            'Use isAutoLayoutEnabled()/enableAutoLayout() instead.'
        );

        if ($autoLayout === null) {
            return $this->autoLayout;
        }

        $this->autoLayout = $autoLayout;
    }
public function autoLayout($autoLayout = null)
    {
        deprecationWarning(
            'View::autoLayout() is deprecated. ' .
            'Use isAutoLayoutEnabled()/enableAutoLayout() instead.'
        );

        if ($autoLayout === null) {
            return $this->autoLayout;
        }

        $this->autoLayout = $autoLayout;
    }
public function autoLayout ( $ autoLayout = null ) { deprecationWarning ( 'View::autoLayout() is deprecated. ' . 'Use isAutoLayoutEnabled()/enableAutoLayout() instead.' ) ; if ( $ autoLayout === null ) { return $ this -> autoLayout ; } $ this -> autoLayout = $ autoLayout ; }
Turns on or off CakePHP's conventional mode of applying layout files.
On by default. Setting to off means that layouts will not be
automatically applied to rendered templates.

@deprecated 3.5.0 Use isAutoLayoutEnabled()/enableAutoLayout() instead.
@param bool|null $autoLayout Boolean to turn on/off. If null returns current value.
@return bool|null
Turns on or off CakePHP s conventional mode of applying layout files . On by default . Setting to off means that layouts will not be automatically applied to rendered templates .