protected function getElementValue($identifier)
    {
        $formValue = $this->formState->getFormValue($identifier);
        if ($formValue !== null) {
            return $formValue;
        }
        return $this->formDefinition->getElementDefaultValueByIdentifier($identifier);
    }
protected function getElementValue($identifier)
    {
        $formValue = $this->formState->getFormValue($identifier);
        if ($formValue !== null) {
            return $formValue;
        }
        return $this->formDefinition->getElementDefaultValueByIdentifier($identifier);
    }
protected function getElementValue ( $ identifier ) { $ formValue = $ this -> formState -> getFormValue ( $ identifier ) ; if ( $ formValue !== null ) { return $ formValue ; } return $ this -> formDefinition -> getElementDefaultValueByIdentifier ( $ identifier ) ; }
Returns the value of the specified element

@param string $identifier
@return mixed
@api
Returns the value of the specified element