You are here

public function AudioFieldPluginBase::getPluginLibraryPath in AudioField 8

Gets the location of this plugin's library installation.

Return value

string The library path of the plugin instance.

8 calls to AudioFieldPluginBase::getPluginLibraryPath()
JPlayerAudioPlayer::getPluginLibraryVersion in src/Plugin/AudioPlayer/JPlayerAudioPlayer.php
Parses library to get version number of installed library.
MediaElementAudioPlayer::getPluginLibraryVersion in src/Plugin/AudioPlayer/MediaElementAudioPlayer.php
Parses library to get version number of installed library.
ProjekktorAudioPlayer::getPluginLibraryVersion in src/Plugin/AudioPlayer/ProjekktorAudioPlayer.php
Parses library to get version number of installed library.
ProjekktorAudioPlayer::renderPlayer in src/Plugin/AudioPlayer/ProjekktorAudioPlayer.php
Renders the player.
SoundManagerAudioPlayer::getPluginLibraryVersion in src/Plugin/AudioPlayer/SoundManagerAudioPlayer.php
Parses library to get version number of installed library.

... See full list

File

src/AudioFieldPluginBase.php, line 157

Class

AudioFieldPluginBase
Base class for audiofield plugins. Includes global functions.

Namespace

Drupal\audiofield

Code

public function getPluginLibraryPath() {

  // Get the main library for this plugin.
  $library = $this
    ->getPluginLibrary();
  return preg_filter('%(^libraries/[^//]+).*%', '/$1', $library['js'][0]['data']);
}