Adding value of item to source values in a custom attribute type
I've managed - with a fair bit of help and hours (days!) of work - to finally get a custom attribute type working, with a custom input renderer (it's to use a custom input field - a dropdown that allows text input too).
But I'm stuck on one last problem.
The source on the attribute provides the data for the drop down (ie, A,B,C etc) which works fine.
And if I edit my custom product type, that uses this custom attribute type, with one of the options from source (ie, A, B, C), it works. Going back to the product correctly shows the right one selected.
But the point of the type is so I can allow users to choose A,B, C, or type in their own. That works, and it stores it... but when the source module is called to populate the input, it only puts in A, B, C - it doesn't put in the actual value - obviously.
The code in my class
class Attributes extends \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource