You are here

public function WysiwygConfigurationHandler::onTextFormatLoad in Configuration Management 7.3

File

src/Handlers/WysiwygConfigurationHandler.php, line 80

Class

WysiwygConfigurationHandler

Namespace

Configuration\Handlers

Code

public function onTextFormatLoad($event) {

  // Check if this format is used by any wysiwyg profile
  $name = $this
    ->getInternalId($event->configuration
    ->getIdentifier());
  $profile = $this->configuration_manager
    ->drupal()
    ->wysiwyg_get_profile($name);
  if (!empty($profile)) {
    $this->configuration_manager
      ->newPart($event->configuration, 'wysiwyg.' . $name);
  }
}