You are here

public static function Pattern::hasMultipleSources in UI Patterns 8

Whereas pattern fields can accept multiple sources.

Parameters

array $element: Render array.

Return value

bool TRUE or FALSE.

1 call to Pattern::hasMultipleSources()
Pattern::processMultipleSources in src/Element/Pattern.php
Process fields.

File

src/Element/Pattern.php, line 221

Class

Pattern
Renders a pattern element.

Namespace

Drupal\ui_patterns\Element

Code

public static function hasMultipleSources(array $element) {
  return isset($element['#multiple_sources']) && $element['#multiple_sources'] === TRUE;
}