interface DashboardLazyBuildInterface in Dashboards with Layout Builder 8
Same name and namespace in other branches
- 2.0.x src/Plugin/DashboardLazyBuildInterface.php \Drupal\dashboards\Plugin\DashboardLazyBuildInterface
Interface for lazy builds.
Hierarchy
- interface \Drupal\dashboards\Plugin\DashboardLazyBuildInterface
Expanded class hierarchy of DashboardLazyBuildInterface
All classes that implement DashboardLazyBuildInterface
File
- src/
Plugin/ DashboardLazyBuildInterface.php, line 8
Namespace
Drupal\dashboards\PluginView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DashboardLazyBuildInterface:: |
public static | function | Callback for lazy build. | 6 |
DashboardLazyBuildInterface:: |
public static | function | Helper for lazy build render. | 1 |