You are here

DisplayBuilderBase.php in Panels 8.3

Same filename and directory in other branches
  1. 8.4 src/Plugin/DisplayBuilder/DisplayBuilderBase.php

File

src/Plugin/DisplayBuilder/DisplayBuilderBase.php
View source
<?php

/**
 * @file
 */
namespace Drupal\panels\Plugin\DisplayBuilder;

use Drupal\Core\Plugin\PluginBase;
use Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant;

/**
 * Provides base class for Display Builder plugins.
 */
abstract class DisplayBuilderBase extends PluginBase implements DisplayBuilderInterface {

  /**
   * {@inheritdoc}
   */
  public function build(PanelsDisplayVariant $panels_display) {
    $regions = $panels_display
      ->getRegionAssignments();
    return $regions;
  }

}

Classes

Namesort descending Description
DisplayBuilderBase Provides base class for Display Builder plugins.