src/Charcoal/Admin/Property/Input/PermalinkInput.php
public function samples()
    {
        if ($this->p()->l10n() === false) {
            $origLang = $this->lang();
            $locales  = $this->translator()->availableLocales();
            $sampleId = $this->sampleId();
            foreach ($locales as $langCode) {
                $this->setSampleId($sampleId.'_'.$langCode);
                $this->setLang($langCode);

                yield $this;
            }
            $this->setSampleId($sampleId);
            $this->setLang($origLang);
        } else {
            yield $this;
        }
    }
public function samples()
    {
        if ($this->p()->l10n() === false) {
            $origLang = $this->lang();
            $locales  = $this->translator()->availableLocales();
            $sampleId = $this->sampleId();
            foreach ($locales as $langCode) {
                $this->setSampleId($sampleId.'_'.$langCode);
                $this->setLang($langCode);

                yield $this;
            }
            $this->setSampleId($sampleId);
            $this->setLang($origLang);
        } else {
            yield $this;
        }
    }
public function samples ( ) { if ( $ this -> p ( ) -> l10n ( ) === false ) { $ origLang = $ this -> lang ( ) ; $ locales = $ this -> translator ( ) -> availableLocales ( ) ; $ sampleId = $ this -> sampleId ( ) ; foreach ( $ locales as $ langCode ) { $ this -> setSampleId ( $ sampleId . '_' . $ langCode ) ; $ this -> setLang ( $ langCode ) ; yield $ this ; } $ this -> setSampleId ( $ sampleId ) ; $ this -> setLang ( $ origLang ) ; } else { yield $ this ; } }
Iterate the samples to display.

@return \Generator
Iterate the samples to display .