public static function EntityBundlePluginTestBundle1::fields in Entity bundle plugin 7
Overrides EntityBundlePluginProvideFieldsInterface::fields
See also
EntityBundlePluginProvideFieldsInterface::fields()
File
- tests/
bundle/ bundle1.inc, line 17
Class
Code
public static function fields() {
$fields['ebp_title']['field'] = array(
'type' => 'text',
'cardinality' => 1,
'translatable' => FALSE,
'settings' => array(
'max_length' => 255,
),
);
$fields['ebp_title']['instance'] = array(
'label' => 'Title',
'required' => TRUE,
'widget' => array(
'type' => 'text_textfield',
'settings' => array(
'size' => 60,
),
),
);
$fields['ebp_description']['field'] = array(
'type' => 'text',
'cardinality' => 1,
'translatable' => FALSE,
'settings' => array(
'max_length' => 255,
),
);
$fields['ebp_description']['instance'] = array(
'label' => 'Description',
'required' => TRUE,
'widget' => array(
'type' => 'text_textfield',
'settings' => array(
'size' => 60,
),
),
);
return $fields;
}