public static function GDPRFieldData::createFromProperty in General Data Protection Regulation 7
Create field data from property name, entity type and bundle.
Parameters
string $entity_type: The entity type id.
string $bundle: The bundle name.
string $property_name: The property name.
Return value
static New field data object.
1 call to GDPRFieldData::createFromProperty()
- GDPRFieldData::createFromWrapper in modules/
gdpr_fields/ src/ Plugins/ GDPRFieldData.php - Create the field data from a property wrapper.
File
- modules/
gdpr_fields/ src/ Plugins/ GDPRFieldData.php, line 118 - Contains the GDPRFieldData class.
Class
- GDPRFieldData
- Class for storing GDPR metadata for fields.
Code
public static function createFromProperty($entity_type, $bundle, $property_name) {
ctools_include('plugins');
$plugin = ctools_get_plugins('gdpr_fields', 'gdpr_data', implode('|', array(
$entity_type,
$bundle,
$property_name,
)));
if ($plugin) {
return static::createFromPlugin($plugin);
}
return NULL;
}