class Ckeditor5TestHooks

Hook implementations for ckeditor5_test.

Hierarchy

Expanded class hierarchy of Ckeditor5TestHooks

File

core/modules/ckeditor5/tests/modules/ckeditor5_test/src/Hook/Ckeditor5TestHooks.php, line 12

Namespace

Drupal\ckeditor5_test\Hook
View source
class Ckeditor5TestHooks {
  
  /**
   * Implements hook_entity_bundle_info_alter().
   */
  public function entityBundleInfoAlter(array &$bundles) : void {
    if (isset($bundles['taxonomy_term'])) {
      foreach ($bundles['taxonomy_term'] as $key => $bundle) {
        $bundles['taxonomy_term'][$key]['ckeditor5_link_suggestions'] = TRUE;
      }
    }
    if (isset($bundles['media'])) {
      foreach ($bundles['media'] as $key => $bundle) {
        $bundles['media'][$key]['ckeditor5_link_suggestions'] = TRUE;
      }
    }
  }

}

Members

Title Sort descending Modifiers Object type Summary
Ckeditor5TestHooks::entityBundleInfoAlter public function Implements hook_entity_bundle_info_alter().

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