public function CloudBlockManager::loadRemote in Gutenberg 8.2
Same name and namespace in other branches
- 8 modules/gutenberg_cloud/src/CloudBlockManager.php \Drupal\gutenberg_cloud\CloudBlockManager::loadRemote()
Load single block from cloud.
Parameters
\Drupal\gutenberg_cloud\string $name: Block name.
Return value
\Drupal\gutenberg_cloud\CloudBlock|null Instance of Cloud Block or null.
File
- modules/
gutenberg_cloud/ src/ CloudBlockManager.php, line 128
Class
- CloudBlockManager
- Class CloudBlockManager.
Namespace
Drupal\gutenberg_cloudCode
public function loadRemote(string $name) {
$blocks = $this
->loadAllFromRemote();
return $blocks[$name] ?? NULL;
}