You are here

public function PoweredByBlock::blockForm in Ubercart 8.4

Overrides BlockPluginTrait::blockForm

File

uc_store/src/Plugin/Block/PoweredByBlock.php, line 92

Class

PoweredByBlock
Provides a block to identify Ubercart as the store software on a site.

Namespace

Drupal\uc_store\Plugin\Block

Code

public function blockForm($form, FormStateInterface $form_state) {
  $configuration = $this->configuration;
  $form['message'] = [
    '#type' => 'radios',
    '#title' => $this
      ->t('Footer message for store pages'),
    '#options' => array_merge([
      0 => $this
        ->t('Randomly select a message from the list below.'),
    ], $this
      ->options()),
    '#default_value' => isset($configuration['message']) ? $configuration['message'] : '',
    '#weight' => 10,
  ];
  return $form;
}