You are here

class EntityBundlePluginTestBundle2 in Entity bundle plugin 7

Hierarchy

Expanded class hierarchy of EntityBundlePluginTestBundle2

1 string reference to 'EntityBundlePluginTestBundle2'
bundle2.inc in tests/bundle/bundle2.inc

File

tests/bundle/bundle2.inc, line 13

View source
class EntityBundlePluginTestBundle2 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