You are here

public function FacebookBoxesRecommendsBlock::defaultConfiguration in Facebook Boxes 8

Overrides BlockPluginTrait::defaultConfiguration

File

src/Plugin/Block/FacebookBoxesRecommendsBlock.php, line 27
Contains \Drupal\facebook_boxes\Plugin\Block\FacebookBoxesRecommendsBlock

Class

FacebookBoxesRecommendsBlock
Provides the Facebook Recommends block.

Namespace

Drupal\facebook_boxes\Plugin\Block

Code

public function defaultConfiguration() {
  global $base_root;
  return array(
    'fb_rec_domain' => parse_url($base_root, PHP_URL_HOST),
    'fb_rec_width' => 292,
    'fb_rec_height' => 300,
    'fb_rec_colorscheme' => 'light',
    'fb_rec_border' => '',
    'fb_rec_toggles' => array(
      'fb_blank',
      'fb_header',
    ),
  );
}