Skip to content

Commit

Permalink
Added readme. Fixed config route
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpepper committed Jul 4, 2014
1 parent 58649d2 commit 0af2974
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion path_message.info.yml
Expand Up @@ -2,5 +2,5 @@ name: Path Message
description: Allows users to set a system message at a specific path.
package: Other
core: 8.x
configure: cors.settings
configure: path_message.settings
type: module
6 changes: 3 additions & 3 deletions src/Form/PathMessageAdminForm.php
Expand Up @@ -70,16 +70,16 @@ public function buildForm(array $form, array &$form_state) {
// Load our default configuration.
$config = $this->config('path_message.settings');

// Set the default condition configuration.
$this->condition->setConfiguration($config->get('request_path'));

$form['message'] = array(
'#type' => 'textfield',
'#title' => $this->t('Message'),
'#description' => $this->t('Enter the message you want to appear'),
'#default_value' => $config->get('message'),
);

// Set the default condition configuration.
$this->condition->setConfiguration($config->get('request_path'));

// Build the configuration form.
$form += $this->condition->buildConfigurationForm($form, $form_state);

Expand Down

0 comments on commit 0af2974

Please sign in to comment.