You are here

function gutenberg_theme in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 gutenberg.module \gutenberg_theme()

Implements hook_theme().

File

./gutenberg.module, line 938
Provides integration with the Gutenberg editor.

Code

function gutenberg_theme() {
  return [
    'page__node__edit__gutenberg' => [
      'template' => 'page--node--edit--gutenberg',
    ],
    'page__node__add__gutenberg' => [
      'template' => 'page--node--add--gutenberg',
    ],
    'node_edit_form__gutenberg' => [
      'template' => 'node-edit-form--gutenberg',
    ],
    'gutenberg_palette' => [
      'variables' => [
        'colors' => [],
      ],
    ],
  ];
}