The string source indicates within which editor the template is being rendered.
source
value to add specific elements to one of the editors — theme editor or code editor. The possible values are:
"theme-editor"
: When the template is being rendered within the Theme Editor"code-editor"
: When the template is being rendered within the Code Editornil
: When the template is not being rendered within an editor