public function reference_table_formatter_commerce_product_reference::renderable_properties in Reference Table Formatter 7
Get a list of properties off the target entity which are renderable.
Make plugin authors explicity define which properties can be rendered so that sensitive information isn't leaked accidently or without a trusted role. A good example is the password on a user reference.
Return value
array An array of properties on the target entity which can be rendered.
Overrides reference_table_formatter_base_type::renderable_properties
File
- plugins/
reference_types/ commerce_product_reference.inc, line 46
Class
Code
public function renderable_properties() {
return array(
'title',
'sku',
'commerce_stock',
'product_id',
);
}