Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Code Style

CamelCase

All Toolbox Elements are written in camelcase.

Controller

  • Document\Areabrick\GoogleMap

Underscore

All Configuration Elements are written in underscore:

toolbox:
    custom_areas:
        anchor:
            config_elements:
                anchor_name: # underscore: in view, you'll call it with pimcore_input('anchor_name');
                    type: input
                    title: Anchor Name
                    config: ~
                anchor_title: # underscore: in view, you'll call it with pimcore_input('anchor_title');
                    type: input
                    title: Anchor Title
                    config: ~

Underscore Exceptions

  • Google Maps Element, Map Options: Values must to be camelcase because of the google map configuration mapping.
  • Config Elements config Tree: Values must be camelcase because of the pimcore element configuration mapping.

Strings

  • Do not use percentage values in titles
  • Always quote your title values