Problem/Motivation
We want to Limit the amount of Embeds we can actually have on a single page and update the whitelisting URL functions
Proposed resolution
You can use:
$config = \Drupal::configFactory()->getEditable('social_embed.settings');
// Add the new configuration value if it doesn't already exist.
if (!$config->get('max_embeds_per_content')) {
$config->set('max_embeds_per_content', '5');
$config->save();
}
Comments
Comment #2
ronaldtebrake commentedhttps://github.com/goalgorilla/open_social/commit/581585e565407209aa683e...