You are here

function name_name_widget_layouts in Name Field 8

Implements hook_name_widget_layouts().

File

./name.module, line 58
Defines an API for displaying and inputing names.

Code

function name_name_widget_layouts() {
  return [
    'stacked' => [
      'label' => t('Stacked'),
    ],
    'inline' => [
      'label' => t('Inline'),
      'library' => [
        'name/widget.inline',
      ],
      'wrapper_attributes' => [
        'class' => [
          'form--inline',
          'clearfix',
        ],
      ],
    ],
  ];
}