You are here

function gdpr_fields_gdpr_entity_property_get_child in General Data Protection Regulation 7

Gets a specific child for a plugin type.

Parameters

array $plugin: The plugin to get child for.

string $parent: The parent plugin id.

string $child: The child plugin id.

Return value

array An child plugin definition.

1 string reference to 'gdpr_fields_gdpr_entity_property_get_child'
gdpr_entity_property.inc in modules/gdpr_fields/plugins/gdpr_data/gdpr_entity_property.inc

File

modules/gdpr_fields/plugins/gdpr_data/gdpr_entity_property.inc, line 31

Code

function gdpr_fields_gdpr_entity_property_get_child(array $plugin, $parent, $child) {
  $plugins = gdpr_fields_gdpr_entity_property_get_children($plugin, $parent);
  return $plugins[$parent . ':' . $child];
}