You are here

DisplayBuilderInterface.php in Panels 8.3

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

File

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

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

use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\layout_plugin\Plugin\Layout\LayoutInterface;
use Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant;

/**
 * Defines the DisplayBuilder plugin type.
 */
interface DisplayBuilderInterface extends PluginInspectionInterface {

  /**
   * Renders a Panels display.
   *
   * This is the outermost method in the Panels render pipeline. It calls the
   * inner methods, which return a content array, which is in turn passed to the
   * theme function specified in the layout plugin.
   *
   * @param Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant
   *   The Panels display variant to render.
   *
   * @return array
   *   Render array modified by the display builder.
   */
  public function build(PanelsDisplayVariant $panels_display);

}

Interfaces

Namesort descending Description
DisplayBuilderInterface Defines the DisplayBuilder plugin type.