public function CloudBlock::__construct in Gutenberg 8.2
Same name and namespace in other branches
- 8 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_cloudCode
public function __construct($block) {
if (is_object($block)) {
$this
->mapFromBlock($block);
}
else {
parent::__construct($block);
}
}