public function CustomHTMLBlockBase::build in Content Planner 8
Builds the render array for the block.
Return value
array The render array for the block.
Overrides DashboardBlockBase::build
File
- src/Plugin/ DashboardBlock/ CustomHTMLBlockBase.php, line 22 
Class
- CustomHTMLBlockBase
- The base class for block base.
Namespace
Drupal\content_planner\Plugin\DashboardBlockCode
public function build() {
  $build = [];
  // Get config.
  $config = $this
    ->getConfiguration();
  if (isset($config['plugin_specific_config']['content'])) {
    $build = [
      '#markup' => check_markup($config['plugin_specific_config']['content']['value'], $config['plugin_specific_config']['content']['format']),
    ];
  }
  return $build;
}