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\DefinitionCode
public function setPreview($preview) {
$this->definition['preview'] = $preview;
return $this;
}