Ckeditor5TestHooks.php
Namespace
Drupal\ckeditor5_test\HookFile
-
core/
modules/ ckeditor5/ tests/ modules/ ckeditor5_test/ src/ Hook/ Ckeditor5TestHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\ckeditor5_test\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for ckeditor5_test.
*/
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;
}
}
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| Ckeditor5TestHooks | Hook implementations for ckeditor5_test. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.