You are here

public function AudioFieldPluginBase::showInstallError in AudioField 8

Shows library installation errors for in-use libraries.

7 calls to AudioFieldPluginBase::showInstallError()
AudioJsAudioPlayer::renderPlayer in src/Plugin/AudioPlayer/AudioJsAudioPlayer.php
Renders the player.
JPlayerAudioPlayer::renderPlayer in src/Plugin/AudioPlayer/JPlayerAudioPlayer.php
Renders the player.
MediaElementAudioPlayer::renderPlayer in src/Plugin/AudioPlayer/MediaElementAudioPlayer.php
Renders the player.
ProjekktorAudioPlayer::renderPlayer in src/Plugin/AudioPlayer/ProjekktorAudioPlayer.php
Renders the player.
SoundManagerAudioPlayer::renderPlayer in src/Plugin/AudioPlayer/SoundManagerAudioPlayer.php
Renders the player.

... See full list

File

src/AudioFieldPluginBase.php, line 250

Class

AudioFieldPluginBase
Base class for audiofield plugins. Includes global functions.

Namespace

Drupal\audiofield

Code

public function showInstallError() {
  $message_data = [
    '@library_name' => $this
      ->getPluginLibraryName(),
    '@status_report' => Link::createFromRoute('status report', 'system.status')
      ->toString(),
  ];
  $this->loggerFactory
    ->get('audiofield')
    ->error('Error: @library_name library is not currently installed! See the @status_report for more information.', $message_data);
  $this->messenger
    ->addWarning($this
    ->t('Error: @library_name library is not currently installed! See the @status_report for more information.', $message_data));
}