You are here

public function FlexiformFormEntityLoad::configForm in Flexiform 7

Get the Configuration Form.

Overrides FlexiformFormEntityBase::configForm

File

includes/form_entity/load.form_entity.inc, line 49
Contains class for a basic entity getter.

Class

FlexiformFormEntityLoad
Form Entity that loads an entity from an id stored in config.

Code

public function configForm($form, &$form_state) {
  $form = parent::configForm($form, $form_state);
  $form['settings']['entity_id'] = array(
    '#type' => 'textfield',
    '#title' => t('Entity ID'),
    '#description' => t('You may also specify a position in the path to take the id from, e.g. "%2" will use the third section of the page path.'),
    '#default_value' => !empty($this->settings['entity_id']) ? $this->settings['entity_id'] : '',
    '#required' => TRUE,
  );
  return $form;
}