You are here

function _brightcove_admin_empty_configuration in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove.player.inc \_brightcove_admin_empty_configuration()

Creates an empty Configuration object.

Return value

\Brightcove\Object\Player\Branch\Configuration\Configuration

3 calls to _brightcove_admin_empty_configuration()
brightcove_admin_embed_edit_form_submit in ./brightcove.player.inc
Submit handler for brightcove_admin_embed_edit_form().
brightcove_admin_player_edit_form in ./brightcove.player.inc
Form callback for 'admin/config/media/brightcove/players/{%/%/edit,add}'.
brightcove_admin_player_edit_form_submit in ./brightcove.player.inc
Submit handler for brightcove_admin_player_edit_form().

File

./brightcove.player.inc, line 954

Code

function _brightcove_admin_empty_configuration() {
  $configuration = new \Brightcove\Object\Player\Branch\Configuration\Configuration();
  $configuration
    ->setCss(new \Brightcove\Object\Player\Branch\Configuration\CSS());
  $configuration
    ->setPlayer(new \Brightcove\Object\Player\Branch\Configuration\Player());
  $configuration
    ->setLanguages([
    'en',
  ]);
  $configuration
    ->setScripts([
    '//players.brightcove.net/videojs-social/3/videojs-social.min.js',
  ]);
  $configuration
    ->setStylesheets([
    '//players.brightcove.net/videojs-social/3/videojs-social.css',
  ]);
  $studio_configuration = new \Brightcove\Object\Player\Branch\Configuration\StudioConfiguration();
  $studio_configuration
    ->setPlayer(new \Brightcove\Object\Player\Branch\Configuration\StudioConfigurationPlayer());
  $configuration
    ->setStudioConfiguration($studio_configuration);
  return $configuration;
}