forked from drupal-media/entity_embed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
entity_embed.module
20 lines (17 loc) · 910 Bytes
/
entity_embed.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
* @file
* Framework for allowing entities to be embedded using CKEditor plugin and text
* format.
*/
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
/**
* Implements hook_help().
*/
function entity_embed_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'entity_embed_button.list':
return '<p>' . t("Embed buttons define the buttons that can be added to CKEditor's toolbar. All buttons correspond to the selcted entity type, although a particular entity type can have more than one buttons. After you've created the desired buttons, go to <a href='@filterformats'>Text formats and editors configuration</a> page to add them to CKEditor's toolbar. Make sure to add <em><drupal-entity></em> to the list of 'Allowed HTML tags'.", array('@filterformats' => Url::fromRoute('filter.admin_overview')->toString())) . '</p>';
}
}