You are here

public function CloudBlockBase::get in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 modules/gutenberg_cloud/src/CloudBlockBase.php \Drupal\gutenberg_cloud\CloudBlockBase::get()

Getter for object properties.

Parameters

string $property: Property name.

Return value

mixed|null Properety value or NULL if property doesn't exists.

Overrides CloudBlockInterface::get

1 call to CloudBlockBase::get()
CloudBlock::getAssetUrl in modules/gutenberg_cloud/src/CloudBlock.php
Get asset URL.

File

modules/gutenberg_cloud/src/CloudBlockBase.php, line 141

Class

CloudBlockBase
Class CloudBlockBase.

Namespace

Drupal\gutenberg_cloud

Code

public function get(string $property) {
  return $this
    ->getConfig()[$property] ?? NULL;
}