You are here

interface SocialSimpleManagerInterface in Social simple 8

Same name and namespace in other branches
  1. 2.0.x src/SocialSimpleManagerInterface.php \Drupal\social_simple\SocialSimpleManagerInterface

Defines an interface a chained service that builds the breadcrumb.

Hierarchy

Expanded class hierarchy of SocialSimpleManagerInterface

All classes that implement SocialSimpleManagerInterface

File

src/SocialSimpleManagerInterface.php, line 10

Namespace

Drupal\social_simple
View source
interface SocialSimpleManagerInterface {

  /**
   * Adds another social network builder.
   *
   * @param \Drupal\social_simple\SocialNetwork\SocialNetworkInterface $network
   *   The social network builder to add.
   * @param int $priority
   *   Priority of the social network builder.
   */
  public function addNetwork(SocialNetworkInterface $network, $priority);

  /**
   * Gets the instantiated social network service.
   *
   * @param string $network_id
   *   The network id.
   *
   * @return \Drupal\social_simple\SocialNetwork\SocialNetworkInterface
   *   The social network service.
   */
  public function get($network_id);

  /**
   * Gets all the instantiated social networks.
   *
   * @return array
   *   The social network label keyed by network_id.
   */
  public function getNetworks();

  /**
   * Returns the sorted array of social network objects.
   *
   * @return \Drupal\social_simple\SocialNetwork\SocialNetworkInterface[]
   *   An array of social network objects keyed by their id.
   */
  public function getSortedNetworks();

}

Members

Namesort descending Modifiers Type Description Overrides
SocialSimpleManagerInterface::addNetwork public function Adds another social network builder. 1
SocialSimpleManagerInterface::get public function Gets the instantiated social network service. 1
SocialSimpleManagerInterface::getNetworks public function Gets all the instantiated social networks. 1
SocialSimpleManagerInterface::getSortedNetworks public function Returns the sorted array of social network objects. 1