You are here

function layouter_element_info_alter in Layouter - WYSIWYG layout templates 8

Same name and namespace in other branches
  1. 7 layouter.module \layouter_element_info_alter()

Implements hook_element_info_alter().

File

./layouter.module, line 207
Contains hooks implementations, prerender callback and common functions.

Code

function layouter_element_info_alter(array &$types) {
  if (\Drupal::currentUser()
    ->hasPermission('use layouter')) {
    $types['text_format']['#pre_render'][] = [
      LayouterTextFormat::class,
      'preRender',
    ];
  }
}