Bolt\Storage\Field\Type\FieldTypeBase::getMappingAttribute PHP Method

getMappingAttribute() public method

Gets the entity attribute name to be used for reading / persisting
public getMappingAttribute ( ) : string
return string
    public function getMappingAttribute()
    {
        if (isset($this->mapping['attribute'])) {
            return $this->mapping['attribute'];
        }
        return $this->mapping['fieldname'];
    }