You are here

VideoBackground.php in Bootstrap Styles 1.0.x

File

src/Element/VideoBackground.php
View source
<?php

namespace Drupal\bootstrap_styles\Element;

use Drupal\Core\Render\Element\RenderElement;

/**
 * Provides a video background render element.
 *
 * @RenderElement("bs_video_background")
 */
class VideoBackground extends RenderElement {

  /**
   * {@inheritdoc}
   */
  public function getInfo() {
    return [
      '#theme' => 'bs_video_background',
      '#attributes' => [],
      '#video_background_url' => '',
      '#children' => [],
    ];
  }

}

Classes

Namesort descending Description
VideoBackground Provides a video background render element.