You are here

interface DashboardLazyBuildInterface in Dashboards with Layout Builder 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/DashboardLazyBuildInterface.php \Drupal\dashboards\Plugin\DashboardLazyBuildInterface

Interface for lazy builds.

Hierarchy

Expanded class hierarchy of DashboardLazyBuildInterface

All classes that implement DashboardLazyBuildInterface

File

src/Plugin/DashboardLazyBuildInterface.php, line 8

Namespace

Drupal\dashboards\Plugin
View source
interface DashboardLazyBuildInterface {

  /**
   * Callback for lazy build.
   *
   * @param \Drupal\dashboards\Plugin\DashboardBase $plugin
   *   Plugin.
   * @param array $configuration
   *   Configuration.
   *
   * @return array
   *   Return renderable array.
   */
  public static function lazyBuild(DashboardBase $plugin, array $configuration) : array;

  /**
   * Helper for lazy build render.
   *
   * @param string $pluginId
   *   Dashboard plugin id.
   * @param string $configuration
   *   Serizalized configuration.
   *
   * @return array
   *   Renderable array
   */
  public static function lazyBuildPreRender(string $pluginId, string $configuration) : array;

}

Members

Namesort descending Modifiers Type Description Overrides
DashboardLazyBuildInterface::lazyBuild public static function Callback for lazy build. 6
DashboardLazyBuildInterface::lazyBuildPreRender public static function Helper for lazy build render. 1