You are here

public function PatternDefinitionField::setPreview in UI Patterns 8

Set Preview property.

Parameters

mixed $preview: Property value.

Return value

$this

File

src/Definition/PatternDefinitionField.php, line 137

Class

PatternDefinitionField
Class PatternDefinitionField.

Namespace

Drupal\ui_patterns\Definition

Code

public function setPreview($preview) {
  $this->definition['preview'] = $preview;
  return $this;
}