class EntityBundlePluginTestBundle1 in Entity bundle plugin 7
Hierarchy
- class \EntityBundlePluginTestBundle1 implements EntityBundlePluginProvideFieldsInterface
Expanded class hierarchy of EntityBundlePluginTestBundle1
1 string reference to 'EntityBundlePluginTestBundle1'
- bundle1.inc in tests/
bundle/ bundle1.inc
File
- tests/
bundle/ bundle1.inc, line 13
View source
class EntityBundlePluginTestBundle1 implements EntityBundlePluginProvideFieldsInterface {
/**
* @see EntityBundlePluginProvideFieldsInterface::fields()
*/
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityBundlePluginTestBundle1:: |
public static | function |
Overrides EntityBundlePluginProvideFieldsInterface:: |