Skip to content

Instantly share code, notes, and snippets.

@julien-maitan
Created June 14, 2018 16:56
Show Gist options
  • Save julien-maitan/ffd136bc104d3dbe2ee526367ffcb44c to your computer and use it in GitHub Desktop.
Save julien-maitan/ffd136bc104d3dbe2ee526367ffcb44c to your computer and use it in GitHub Desktop.
Drupal 8 translatable configuration
crtib_configurator.settings:
title: 'CRTIB configurator settings'
base_route_name: crtib_configurator.settings
names:
- crtib_configurator.settings
crtib_configurator.settings:
path: '/admin/config/crtib/configurator/settings'
defaults:
_form: '\Drupal\crtib_configurator\Form\SettingsForm'
_title: 'CRTIB Configurator settings'
requirements:
_permission: 'configure crtib configurator'
crtib_configurator.settings:
type: config_object
label: 'CRTIB configurator settings'
mapping:
api_url:
type: label
label: 'API url'
api_url: 'http://localhost/'
langcode: en
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment