You are here

interface FacebookAlbumInterface in Facebook Album 8

FacebookAlbumInterface.

Hierarchy

Expanded class hierarchy of FacebookAlbumInterface

All classes that implement FacebookAlbumInterface

2 files declare their use of FacebookAlbumInterface
FacebookAlbumController.php in src/Controller/FacebookAlbumController.php
Contains \Drupal\facebook_album\Controller\FacebookAlbumController.
FacebookAlbumForm.php in src/Form/FacebookAlbumForm.php
Contains \Drupal\facebook_album\Form\FacebookAlbumForm.

File

src/FacebookAlbumInterface.php, line 12
Contains \Drupal\facebook_album\FacebookAlbumInterface.

Namespace

Drupal\facebook_album
View source
interface FacebookAlbumInterface {

  /**
   * Get response data
   *
   * @param string $call_path
   * @param array $parameters
   *
   * @return mixed
   */
  public function get($call_path = '', $parameters = array());

  /**
   * Translate API errors into a user friendly error.
   *
   * @param $code
   *    The error code returned from the facebook API or internally
   * @param $message
   *    The corresponding message to that error code, if there is one
   * @return string
   *    A user friendly error message
   */
  public function translate_error($code, $message);

}

Members

Namesort descending Modifiers Type Description Overrides
FacebookAlbumInterface::get public function Get response data 1
FacebookAlbumInterface::translate_error public function Translate API errors into a user friendly error. 1