You are here

public function Breadcrumb::buildConfigurationForm in Breadcrumb Manager 8

File

modules/breadcrumb_manager_context/src/Plugin/ContextReaction/Breadcrumb.php, line 44

Class

Breadcrumb
Provides a content reaction that sets a breadcrumb title.

Namespace

Drupal\breadcrumb_manager_context\Plugin\ContextReaction

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $form['breadcrumb'] = [
    '#title' => $this
      ->t('Breadcrumb title'),
    '#type' => 'textfield',
    '#description' => $this
      ->t('Provides this text as breadcrumb title for the given page.'),
    '#default_value' => $this
      ->getConfiguration()['breadcrumb'],
  ];
  return $form;
}