src/Extension/FluentFilteredExtension.php
protected function getModeIsStage()
    {
        $readingMode = Versioned::get_reading_mode();
        $draft = Versioned::DRAFT;

        if (strlen($readingMode) === 0) {
            $readingMode = Versioned::DEFAULT_MODE;
        }

        return substr_compare($readingMode, $draft, strlen($readingMode) - strlen($draft), strlen($draft)) === 0;
    }
protected function getModeIsStage()
    {
        $readingMode = Versioned::get_reading_mode();
        $draft = Versioned::DRAFT;

        if (strlen($readingMode) === 0) {
            $readingMode = Versioned::DEFAULT_MODE;
        }

        return substr_compare($readingMode, $draft, strlen($readingMode) - strlen($draft), strlen($draft)) === 0;
    }
protected function getModeIsStage ( ) { $ readingMode = Versioned :: get_reading_mode ( ) ; $ draft = Versioned :: DRAFT ; if ( strlen ( $ readingMode ) === 0 ) { $ readingMode = Versioned :: DEFAULT_MODE ; } return substr_compare ( $ readingMode , $ draft , strlen ( $ readingMode ) - strlen ( $ draft ) , strlen ( $ draft ) ) === 0 ; }
There are two different DRAFT modes. One when browsing stage, and one when browsing archive. Both modes have
"Stage" at the very end of their reading_mode name.

@return bool
There are two different DRAFT modes . One when browsing stage and one when browsing archive . Both modes have Stage at the very end of their reading_mode name .