You are here

public function Common::closeButtonMarkup in Filebrowser 3.x

Same name and namespace in other branches
  1. 8.2 src/Services/Common.php \Drupal\filebrowser\Services\Common::closeButtonMarkup()

File

src/Services/Common.php, line 369

Class

Common
Class Common @package Drupal\filebrowser\Services

Namespace

Drupal\filebrowser\Services

Code

public function closeButtonMarkup() {
  return [
    '#markup' => Link::fromTextAndUrl($this
      ->t('Close'), Url::fromUserInput('#', [
      'attributes' => [
        'class' => [
          'filebrowser-close-window-link',
        ],
      ],
    ]))
      ->toString(),
  ];
}