You are here

public function WysiwygConfigurationHandler::getIdentifiers in Configuration Management 7.3

Returns the configuration identifiers handled by this instance.

Return value

array An array of identifiers.

Overrides ConfigurationHandler::getIdentifiers

File

src/Handlers/WysiwygConfigurationHandler.php, line 15

Class

WysiwygConfigurationHandler

Namespace

Configuration\Handlers

Code

public function getIdentifiers() {
  $profiles = array();
  $formats = filter_formats();
  foreach (array_keys($this->configuration_manager
    ->drupal()
    ->wysiwyg_profile_load_all()) as $format) {

    // Text format may vanish without deleting the wysiwyg profile.
    if (isset($formats[$format])) {
      $profiles[$format] = $format;
    }
  }
  return $profiles;
}