function Ckeditor5Hooks::entityBundleInfoAlter

Implements hook_entity_bundle_info_alter().

Attributes

#[Hook('entity_bundle_info_alter')]

File

core/modules/ckeditor5/src/Hook/Ckeditor5Hooks.php, line 398

Class

Ckeditor5Hooks
Hook implementations for ckeditor5.

Namespace

Drupal\ckeditor5\Hook

Code

public function entityBundleInfoAlter(array &$bundles) : void {
  if (isset($bundles['node'])) {
    foreach ($bundles['node'] as $key => $bundle) {
      $bundles['node'][$key]['ckeditor5_link_suggestions'] = TRUE;
    }
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.