You are here

public function AudioFieldPluginBase::getPluginLibrary in AudioField 8

Gets the main library instance of this plugin.

Return value

array The definition of the main library for this plugin.

4 calls to AudioFieldPluginBase::getPluginLibrary()
AudioFieldPluginBase::checkInstalled in src/AudioFieldPluginBase.php
Checks to see if this audio plugin has been properly installed.
AudioFieldPluginBase::checkVersion in src/AudioFieldPluginBase.php
Checks to see if this audio plugin version is up to date.
AudioFieldPluginBase::getPluginLibraryPath in src/AudioFieldPluginBase.php
Gets the location of this plugin's library installation.
AudioFieldPluginBase::getPluginRemoteSource in src/AudioFieldPluginBase.php
Gets the remote download source from the plugin's main library.

File

src/AudioFieldPluginBase.php, line 135

Class

AudioFieldPluginBase
Base class for audiofield plugins. Includes global functions.

Namespace

Drupal\audiofield

Code

public function getPluginLibrary() {

  // Get the main library for this plugin.
  return $this->libraryDiscovery
    ->getLibraryByName('audiofield', 'audiofield.' . $this
    ->getPluginLibraryName());
}