You are here

protected function PoweredByBlock::options in Ubercart 8.4

Returns the default message options.

2 calls to PoweredByBlock::options()
PoweredByBlock::blockForm in uc_store/src/Plugin/Block/PoweredByBlock.php
PoweredByBlock::build in uc_store/src/Plugin/Block/PoweredByBlock.php
Builds and returns the renderable array for this block plugin.

File

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

Class

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

Namespace

Drupal\uc_store\Plugin\Block

Code

protected function options() {
  $url = [
    ':url' => Url::fromUri('https://www.drupal.org/project/ubercart')
      ->toString(),
  ];
  return [
    1 => $this
      ->t('<a href=":url">Powered by Ubercart</a>', $url),
    2 => $this
      ->t('<a href=":url">Drupal e-commerce</a> provided by Ubercart.', $url),
    3 => $this
      ->t('Supported by Ubercart, an <a href=":url">open source e-commerce suite</a>.', $url),
    4 => $this
      ->t('Powered by Ubercart, the <a href=":url">free shopping cart software</a>.', $url),
  ];
}