DashboardLazyBuildInterface.php in Dashboards with Layout Builder 8
Same filename and directory in other branches
Namespace
Drupal\dashboards\PluginFile
src/Plugin/DashboardLazyBuildInterface.phpView source
<?php
namespace Drupal\dashboards\Plugin;
/**
* Interface for lazy builds.
*/
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;
}
Interfaces
Name | Description |
---|---|
DashboardLazyBuildInterface | Interface for lazy builds. |