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

ronaldtebrake created an issue. See original summary.

ronaldtebrake’s picture

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.