I have a few attributes that come with input select or multiselect. I have created source models to provide options for inputs. Everything seems to work (values are saved). But today I realized that also attribute options can be added.
Can anyone tell me what is the difference? Should I use source model or options? I have noticed thanks to this tutorial: Upgrade script - Create new select attribute with options that labels for options ar bind with store ids - how it should look like if I want to add the same options for every store (I have one website and one store). How to add more options for one attribute in sql script?
\Magento\Eav\Setup\EavSetup::addAttributeOption()
. I should expand this into an answer, but haven't got the time right now.