You are here

public function Breadcrumb::submitConfigurationForm in Context Breadcrumb 8

File

src/Plugin/ContextReaction/Breadcrumb.php, line 130

Class

Breadcrumb
Provides a content reaction that adds breadcrumb to page.

Namespace

Drupal\context_breadcrumb\Plugin\ContextReaction

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this
    ->setConfiguration([
    'breadcrumbs' => $form_state
      ->getValue('breadcrumbs'),
  ]);
  Cache::invalidateTags([
    'context:breadcrumb',
  ]);
}