Snippet Field

<sw-snippet-field>

ready
Input field that allows you to easily edit and translate snippet in a modal.

Usage

Loading...
<sw-snippet-field snippet="myPlugin.test.snippet" fieldType="text"></sw-switch-field>

Component properties

Property name Type Default
snippet String
fieldType String text

Methods

Method name Parameters
createdComponent No parameters
updatePlaceholderValueToSnippetTranslation No parameters
getTranslationByLocale locale
getSystemDefaultLocale No parameters
openEditModal No parameters
closeEditModal No parameters
onSave No parameters

Imports

  • ./sw-snippet-field.html.twig
  • ./sw-snippet-field.scss

Inject

  • snippetSetService
  • repositoryFactory

Twig blocks

  • sw_snippet_field