public function PatternDefinition::hasVariants in UI Patterns 8
Check whereas pattern has variants.
Return value
bool Whereas pattern has variants.
File
- src/
Definition/ PatternDefinition.php, line 236
Class
- PatternDefinition
- Class PatternDefinition.
Namespace
Drupal\ui_patterns\DefinitionCode
public function hasVariants() {
return !empty($this->definition['variants']);
}