Skip to content
Snippets Groups Projects

Issue #3377457 by guillaume-aveline: [1.x] Allow multiple previews for each pattern

4 files
+ 73
5
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -21,6 +21,7 @@ class PatternDefinitionVariant implements \ArrayAccess {
'label' => NULL,
'description' => NULL,
'use' => NULL,
'preview' => NULL,
];
/**
@@ -122,4 +123,27 @@ class PatternDefinitionVariant implements \ArrayAccess {
$this->definition['use'] = $use;
return $this;
}
/**
* Get Preview property.
*
* @return array
* Property value.
*/
public function getPreview() {
return $this->definition['preview'];
}
/**
* Set Preview property.
*
* @param array $preview
* Property value.
*
* @return $this
*/
public function setPreview($preview) {
$this->definition['preview'] = $preview;
return $this;
}
}
Loading