src/Extension/FluentExtension.php
public function getLinkingMode($locale)
    {
        if ($this->owner->hasMethod('canViewInLocale') && !$this->owner->canViewInLocale($locale)) {
            return 'invalid';
        }

        if ($locale === FluentState::singleton()->getLocale()) {
            return 'current';
        }

        return 'link';
    }
public function getLinkingMode($locale)
    {
        if ($this->owner->hasMethod('canViewInLocale') && !$this->owner->canViewInLocale($locale)) {
            return 'invalid';
        }

        if ($locale === FluentState::singleton()->getLocale()) {
            return 'current';
        }

        return 'link';
    }
public function getLinkingMode ( $ locale ) { if ( $ this -> owner -> hasMethod ( 'canViewInLocale' ) && ! $ this -> owner -> canViewInLocale ( $ locale ) ) { return 'invalid' ; } if ( $ locale === FluentState :: singleton ( ) -> getLocale ( ) ) { return 'current' ; } return 'link' ; }
Return the linking mode for the current locale and object

@param string $locale
@return string
Return the linking mode for the current locale and object