
| Current Path : /var/www/html1/testsite/web/themes/contrib/bootstrap/src/Plugin/Markdown/AllowedHtml/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //var/www/html1/testsite/web/themes/contrib/bootstrap/src/Plugin/Markdown/AllowedHtml/Bootstrap.php |
<?php
namespace Drupal\bootstrap\Plugin\Markdown\AllowedHtml;
use Drupal\Core\Plugin\PluginBase;
use Drupal\Core\Theme\ActiveTheme;
use Drupal\markdown\Plugin\Markdown\AllowedHtmlInterface;
use Drupal\markdown\Plugin\Markdown\ParserInterface;
/**
* Provides additional Bootstrap specific allowed HTML for Markdown.
*
* @MarkdownAllowedHtml(
* id = "bootstrap",
* description = @Translation("Provide common global attributes that are useful when dealing with Bootstrap specific output."),
* )
*/
class Bootstrap extends PluginBase implements AllowedHtmlInterface {
/**
* {@inheritdoc}
*/
public function allowedHtmlTags(ParserInterface $parser, ActiveTheme $activeTheme = NULL) {
return [
'*' => [
'data-complete-text' => TRUE,
'data-container' => TRUE,
'data-content' => TRUE,
'data-dismiss' => TRUE,
'data-loading-text' => TRUE,
'data-parent' => TRUE,
'data-placement' => TRUE,
'data-ride' => TRUE,
'data-slide' => TRUE,
'data-slide-to' => TRUE,
'data-spy' => TRUE,
'data-target' => TRUE,
'data-toggle' => TRUE,
],
];
}
}