You are here

protected static function InsertUtility::combineEditorExtraAllowedContent in Insert 8.2

Parameters

string|null $extraAllowedContent:

array $additionalAllowedContent:

1 call to InsertUtility::combineEditorExtraAllowedContent()
InsertUtility::addEditorExtraAllowedContent in src/Utility/InsertUtility.php
Adds allowed content (tags, attributes) to the editor settings.

File

src/Utility/InsertUtility.php, line 165

Class

InsertUtility

Namespace

Drupal\insert\Utility

Code

protected static function combineEditorExtraAllowedContent(&$extraAllowedContent, array $additionalAllowedContent) {
  $additionalAllowedContent = join('; ', $additionalAllowedContent);
  if ($extraAllowedContent === NULL) {
    $extraAllowedContent = $additionalAllowedContent;
    return;
  }
  $extraAllowedContent .= '; ' . $additionalAllowedContent;
}