You are here

protected function AbstractPatternsDeriver::getPatternDefinition in UI Patterns 8

Get pattern data object.

Parameters

array $definition: Pattern definition array.

Return value

\Drupal\ui_patterns\Definition\PatternDefinition Pattern definition object.

1 call to AbstractPatternsDeriver::getPatternDefinition()
LibraryDeriver::getPatterns in modules/ui_patterns_library/src/Plugin/Deriver/LibraryDeriver.php
Get pattern definition objects.

File

src/Plugin/Deriver/AbstractPatternsDeriver.php, line 80

Class

AbstractPatternsDeriver
Class AbstractPatternsDeriver.

Namespace

Drupal\ui_patterns\Plugin\Deriver

Code

protected function getPatternDefinition(array $definition = []) {
  return new PatternDefinition($definition);
}