src/Charcoal/Admin/Property/AbstractPropertyInput.php
public function placeholder()
    {
        if ($this->placeholder === null) {
            $metadata = $this->metadata();

            if (isset($metadata['data']['placeholder'])) {
                $this->setPlaceholder($metadata['data']['placeholder']);
            } else {
                $this->placeholder = '';
            }
        }

        if ($this->placeholder instanceof Translation) {
            if (isset($this->placeholder->isRendered) && $this->placeholder->isRendered === false) {
                $this->placeholder = $this->renderTranslatableTemplate($this->placeholder);
            }

            if ($this->lang()) {
                return $this->placeholder[$this->lang()];
            }
        }

        return $this->placeholder;
    }
public function placeholder()
    {
        if ($this->placeholder === null) {
            $metadata = $this->metadata();

            if (isset($metadata['data']['placeholder'])) {
                $this->setPlaceholder($metadata['data']['placeholder']);
            } else {
                $this->placeholder = '';
            }
        }

        if ($this->placeholder instanceof Translation) {
            if (isset($this->placeholder->isRendered) && $this->placeholder->isRendered === false) {
                $this->placeholder = $this->renderTranslatableTemplate($this->placeholder);
            }

            if ($this->lang()) {
                return $this->placeholder[$this->lang()];
            }
        }

        return $this->placeholder;
    }
public function placeholder ( ) { if ( $ this -> placeholder === null ) { $ metadata = $ this -> metadata ( ) ; if ( isset ( $ metadata [ 'data' ] [ 'placeholder' ] ) ) { $ this -> setPlaceholder ( $ metadata [ 'data' ] [ 'placeholder' ] ) ; } else { $ this -> placeholder = '' ; } } if ( $ this -> placeholder instanceof Translation ) { if ( isset ( $ this -> placeholder -> isRendered ) && $ this -> placeholder -> isRendered === false ) { $ this -> placeholder = $ this -> renderTranslatableTemplate ( $ this -> placeholder ) ; } if ( $ this -> lang ( ) ) { return $ this -> placeholder [ $ this -> lang ( ) ] ; } } return $ this -> placeholder ; }
Retrieve the placeholder.

@return Translation|string|null
Retrieve the placeholder .