public function PatternDefinition::getVariants in UI Patterns 8
Getter.
Return value
\Drupal\ui_patterns\Definition\PatternDefinitionVariant[] Property value.
2 calls to PatternDefinition::getVariants()
- PatternDefinition::getVariantsAsOptions in src/
Definition/ PatternDefinition.php - Get field as options.
- PatternDefinition::toArray in src/
Definition/ PatternDefinition.php - Return array definition.
File
- src/
Definition/ PatternDefinition.php, line 246
Class
- PatternDefinition
- Class PatternDefinition.
Namespace
Drupal\ui_patterns\DefinitionCode
public function getVariants() {
return $this->definition['variants'];
}