unset($definitions['ckeditor5_arbitraryHtmlSupport'
]);
} // Evaluate `plugins` condition.
foreach ($definitions_with_plugins_condition as $plugin_id =>
$definition) { if (!
empty(array_diff($definition->
getConditions()['plugins'
],
array_keys($definitions)))) { unset($definitions[$plugin_id]);
} } if (!
isset($definitions['ckeditor5_arbitraryHtmlSupport'
])) { $restrictions =
new HTMLRestrictions($this->
getProvidedElements(array_keys($definitions),
$editor, FALSE
));
if ($restrictions->
getWildcardSubset()->
allowsNothing()) { // This is only reached if arbitrary HTML is not enabled. If wildcard
// tags (such as $text-container) are present, they need to
// be resolved via the wildcardHtmlSupport plugin.
// @see \Drupal\ckeditor5\Plugin\CKEditor5PluginManager::getCKEditor5PluginConfig()
unset($definitions['ckeditor5_wildcardHtmlSupport'
]);
} } // When arbitrary HTML is already supported, there is no need to support
// wildcard tags.
else {