src/Extension/FluentSiteTreeExtension.php
public function updateStatusFlags(&$flags)
    {
        // If there is no current FluentState, then we shouldn't update.
        if (!FluentState::singleton()->getLocale()) {
            return;
        }

        // If this page does not exist it should be "invisible"
        if (!$this->isDraftedInLocale() && !$this->isPublishedInLocale()) {
            $flags['fluentinvisible'] = [
                'text' => '',
                'title' => '',
            ];
        }
    }
public function updateStatusFlags(&$flags)
    {
        // If there is no current FluentState, then we shouldn't update.
        if (!FluentState::singleton()->getLocale()) {
            return;
        }

        // If this page does not exist it should be "invisible"
        if (!$this->isDraftedInLocale() && !$this->isPublishedInLocale()) {
            $flags['fluentinvisible'] = [
                'text' => '',
                'title' => '',
            ];
        }
    }
public function updateStatusFlags ( & $ flags ) { // If there is no current FluentState, then we shouldn't update. if ( ! FluentState :: singleton ( ) -> getLocale ( ) ) { return ; } // If this page does not exist it should be "invisible" if ( ! $ this -> isDraftedInLocale ( ) && ! $ this -> isPublishedInLocale ( ) ) { $ flags [ 'fluentinvisible' ] = [ 'text' => '' , 'title' => '' , ] ; } }
Check whether the current page is exists in the current locale.

If it is invisible then we add a class to show it slightly greyed out in the site tree.

@param array $flags
Check whether the current page is exists in the current locale .