public function BsGrid::getCssFiles in CKEditor Bootstrap Grid 2.0.x
Retrieves enabled plugins' iframe instance CSS files.
Note: this does not use a Drupal asset library because this CSS will be loaded by CKEditor, not by Drupal.
Parameters
\Drupal\editor\Entity\Editor $editor: A configured text editor object.
Return value
string[] An array of CSS files. This is a flat list of file paths relative to the Drupal root.
Overrides CKEditorPluginCssInterface::getCssFiles
File
- src/
Plugin/ CKEditorPlugin/ BsGrid.php, line 139
Class
- BsGrid
- Defines the "bs_grid" plugin.
Namespace
Drupal\ckeditor_bs_grid\Plugin\CKEditorPluginCode
public function getCssFiles(Editor $editor) {
$settings = $editor
->getSettings();
$config = $settings['plugins']['bs_grid'] ?? [];
return !empty($config['use_cdn']) && !empty($config['cdn_url']) ? [
$config['cdn_url'],
] : [];
}