You are here

protected static property PublicFieldInfoBase::$defaultSections in RESTful 7.2

Default categories for the field information.

Type: array[]

File

src/Plugin/resource/Field/PublicFieldInfo/PublicFieldInfoBase.php, line 19
Contains \Drupal\restful\Plugin\resource\Field\PublicFieldInfo\PublicFieldInfoBase.

Class

PublicFieldInfoBase

Namespace

Drupal\restful\Plugin\resource\Field\PublicFieldInfo

Code

protected static $defaultSections = array(
  'info' => array(
    'label' => '',
    'description' => '',
  ),
  // Describe the data.
  'data' => array(
    'type' => NULL,
    'read_only' => FALSE,
    'cardinality' => 1,
    'required' => FALSE,
  ),
  // Information about the form element.
  'form_element' => array(
    'type' => NULL,
    'default_value' => '',
    'placeholder' => '',
    'size' => NULL,
    'allowed_values' => NULL,
  ),
);