protected function initializeFieldName()
    {
        $this->fieldName = $this->arguments['field'];

        if (empty($this->fieldName)
            && $this->fieldService->fieldContextExists()
        ) {
            $this->fieldName = $this->fieldService
                ->getCurrentField()
                ->getName();
        }

        if (null === $this->fieldName) {
            throw EntryNotFoundException::classViewHelperFieldNotFound($this->arguments['name']);
        }
    }
protected function initializeFieldName()
    {
        $this->fieldName = $this->arguments['field'];

        if (empty($this->fieldName)
            && $this->fieldService->fieldContextExists()
        ) {
            $this->fieldName = $this->fieldService
                ->getCurrentField()
                ->getName();
        }

        if (null === $this->fieldName) {
            throw EntryNotFoundException::classViewHelperFieldNotFound($this->arguments['name']);
        }
    }
protected function initializeFieldName ( ) { $ this -> fieldName = $ this -> arguments [ 'field' ] ; if ( empty ( $ this -> fieldName ) && $ this -> fieldService -> fieldContextExists ( ) ) { $ this -> fieldName = $ this -> fieldService -> getCurrentField ( ) -> getName ( ) ; } if ( null === $ this -> fieldName ) { throw EntryNotFoundException :: classViewHelperFieldNotFound ( $ this -> arguments [ 'name' ] ) ; } }
Fetches the name of the field which should refer to this class. It can
either be a given value, or be empty if the ViewHelper is used inside a
`FieldViewHelper`.

@throws EntryNotFoundException
Fetches the name of the field which should refer to this class . It can either be a given value or be empty if the ViewHelper is used inside a FieldViewHelper .