You are here

public function MaestroEngineEntityIdentifierEditLink::buildOptionsForm in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/field/MaestroEngineEntityIdentifierEditLink.php \Drupal\maestro\Plugin\views\field\MaestroEngineEntityIdentifierEditLink::buildOptionsForm()

Provide the options form.

Overrides FieldPluginBase::buildOptionsForm

File

src/Plugin/views/field/MaestroEngineEntityIdentifierEditLink.php, line 41

Class

MaestroEngineEntityIdentifierEditLink
Field handler to generate an edit link to the entity if possible based on user perms.

Namespace

Drupal\maestro\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['edit_text'] = [
    '#title' => $this
      ->t('Link Text'),
    '#type' => 'textfield',
    '#default_value' => isset($this->options['edit_text']) ? $this->options['edit_text'] : 'Edit',
  ];
  parent::buildOptionsForm($form, $form_state);
}