You are here

public function WelcomeUserNameBlock::defaultConfiguration in Welcome Username 8

Overrides BlockPluginTrait::defaultConfiguration

File

src/Plugin/Block/WelcomeUserNameBlock.php, line 32

Class

WelcomeUserNameBlock
Provides a 'Welcome Username Login/Logout' Block.

Namespace

Drupal\welcome_username\Plugin\Block

Code

public function defaultConfiguration() {
  return [
    'welcome_username_welcome_string' => $this
      ->t('Welcome'),
    'welcome_username_logout_string' => $this
      ->t('Logout'),
  ];
}