public function reference_table_formatter_paragraphs::get_bundles in Reference Table Formatter 7
Get a list of bundles which can be referenced by this field.
Return value
array A list of bundles.
Overrides reference_table_formatter_base_type::get_bundles
File
- plugins/
reference_types/ paragraphs.inc, line 19
Class
- reference_table_formatter_paragraphs
- Class reference_table_formatter_paragraphs
Code
public function get_bundles() {
return count($this->instance['settings']['allowed_bundles']) > 0 ? array_keys($this->instance['settings']['allowed_bundles']) : array_keys(paragraphs_bundle_load());
}