You are here

public function reference_table_formatter_base_type::is_field in Reference Table Formatter 7

Check if a key is a property or field.

Parameters

$field_name: A machine name of a field.

Return value

bool If the given key is a field.

1 call to reference_table_formatter_base_type::is_field()
reference_table_formatter_base_type::render_table in ./reference_table_formatter_base_type.inc
Render a table of content from the plugin.

File

./reference_table_formatter_base_type.inc, line 305
A base class for the "reference type" plugin.

Class

reference_table_formatter_base_type
Class reference_table_formatter_base_type

Code

public function is_field($field_name) {
  $field_list = $this
    ->get_bundle_fields();
  return isset($field_list[$field_name]);
}