You are here

public static function UiPatternsSettings::getPatternDefinitionSetting in UI Patterns Settings 8.2

Get setting definition for a pattern and a setting name.

Parameters

\Drupal\ui_patterns\Definition\PatternDefinition $definition: The pattern definition.

string $setting_name: The setting name.

3 calls to UiPatternsSettings::getPatternDefinitionSetting()
UiPatternsSettings::preprocessExposedFields in src/UiPatternsSettings.php
Preprocess exposed settings variables.
ui_patterns_settings_allowed_values_function in ./ui_patterns_settings.module
The storage config.
ui_patterns_settings_entity_field_storage_info_alter in ./ui_patterns_settings.module
Implements hook_entity_field_storage_info_alter().

File

src/UiPatternsSettings.php, line 234

Class

UiPatternsSettings
UI Patterns setting factory class.

Namespace

Drupal\ui_patterns_settings

Code

public static function getPatternDefinitionSetting(PatternDefinition $definition, $setting_name) {
  $definitions = self::getPatternDefinitionSettings($definition);
  return isset($definitions[$setting_name]) ? $definitions[$setting_name] : NULL;
}