/**
  * Returns the file URI of the library definition file for a given library ID.
  *
  * @param $id
  *   The ID of the external library.
  *
  * @return string
  *   The file URI of the file the library definition resides in.
  */
 protected function getFileUri($id)
 {
     $filename = $id . '.' . $this->serializer->getFileExtension();
     return "{$this->baseUri}/{$filename}";
 }
Ejemplo n.º 2
0
 public static function getFileExtension()
 {
     return static::$mock->getFileExtension();
 }
 /**
  * Returns the file URI of the library definition file for a given library ID.
  *
  * @param $id
  *   The ID of the external library.
  *
  * @return string
  *   The file URI of the file the library definition resides in.
  */
 protected function getFileUri($id)
 {
     $filename = $id . '.' . $this->serializer->getFileExtension();
     return "library-definitions://{$filename}";
 }