You are here

public function EntityLabel::settingsForm in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/EntityBrowser/FieldWidgetDisplay/EntityLabel.php \Drupal\entity_browser\Plugin\EntityBrowser\FieldWidgetDisplay\EntityLabel::settingsForm()

Returns a form to configure settings for the plugin.

Parameters

array $form: The form where the settings form is being included in.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form definition for the widget settings.

Overrides FieldWidgetDisplayBase::settingsForm

File

src/Plugin/EntityBrowser/FieldWidgetDisplay/EntityLabel.php, line 70

Class

EntityLabel
Displays a label of the entity.

Namespace

Drupal\entity_browser\Plugin\EntityBrowser\FieldWidgetDisplay

Code

public function settingsForm(array $form, FormStateInterface $form_state) {
  return [
    '#prefix' => '<p>',
    '#suffix' => '</p>',
    '#markup' => $this
      ->t('This plugin has no configuration options.'),
  ];
}