You are here

function registration_handler_field_registration_link::options_form in Entity Registration 8.2

Same name in this branch
  1. 8.2 src/registration_handler_field_registration_link.php \Drupal\registration\registration_handler_field_registration_link::options_form()
  2. 8.2 modules/registration_views/includes/registration_handler_field_registration_link.inc \registration_handler_field_registration_link::options_form()
  3. 8.2 modules/registration_views/src/registration_handler_field_registration_link.php \Drupal\registration_views\registration_handler_field_registration_link::options_form()

File

modules/registration_views/src/registration_handler_field_registration_link.php, line 16
Field handler to render a link to a registration.

Class

registration_handler_field_registration_link
@file Field handler to render a link to a registration.

Namespace

Drupal\registration_views

Code

function options_form(&$form, &$form_state) {
  $form['text'] = array(
    '#type' => 'textfield',
    '#title' => t('Text to display'),
    '#default_value' => $this->options['text'],
  );
  parent::options_form($form, $form_state);

  // The path is set by render_link function so don't allow to set it.
  $form['alter']['path'] = array(
    '#access' => FALSE,
  );
  $form['alter']['external'] = array(
    '#access' => FALSE,
  );
}