You are here

public function CloudBlock::__construct in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 modules/gutenberg_cloud/src/CloudBlock.php \Drupal\gutenberg_cloud\CloudBlock::__construct()

CloudBlock constructor.

Parameters

mixed $block: Cloud block structure.

Overrides CloudBlockBase::__construct

File

modules/gutenberg_cloud/src/CloudBlock.php, line 23

Class

CloudBlock
Class CloudBlock.

Namespace

Drupal\gutenberg_cloud

Code

public function __construct($block) {
  if (is_object($block)) {
    $this
      ->mapFromBlock($block);
  }
  else {
    parent::__construct($block);
  }
}