You are here

public function PatternDisplayFormTrait::hasMappingDestination in UI Patterns 8

Helper function: check if given source field has mapping destination.

Parameters

string $plugin: Current plugin ID.

string $source: Source field name.

array $settings: Setting array.

Return value

bool TRUE if source has destination field, FALSE otherwise.

1 call to PatternDisplayFormTrait::hasMappingDestination()
Pattern::isFieldVisible in modules/ui_patterns_views/src/Plugin/views/row/Pattern.php
Helper function: check for all conditions that make a field visible.

File

src/Form/PatternDisplayFormTrait.php, line 221

Class

PatternDisplayFormTrait
Trait PatternDisplayFormTrait.

Namespace

Drupal\ui_patterns\Form

Code

public function hasMappingDestination($plugin, $source, array $settings) {
  return $this
    ->getMappingDestination($plugin, $source, $settings) !== NULL;
}