interface SocialSimpleManagerInterface in Social simple 2.0.x
Same name and namespace in other branches
- 8 src/SocialSimpleManagerInterface.php \Drupal\social_simple\SocialSimpleManagerInterface
Defines an interface a chained service that builds the breadcrumb.
Hierarchy
- interface \Drupal\social_simple\SocialSimpleManagerInterface
Expanded class hierarchy of SocialSimpleManagerInterface
All classes that implement SocialSimpleManagerInterface
File
- src/
SocialSimpleManagerInterface.php, line 10
Namespace
Drupal\social_simpleView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SocialSimpleManagerInterface:: |
public | function | Adds another social network builder. | 1 |
SocialSimpleManagerInterface:: |
public | function | Gets the instantiated social network service. | 1 |
SocialSimpleManagerInterface:: |
public | function | Gets all the instantiated social networks. | 1 |
SocialSimpleManagerInterface:: |
public | function | Returns the sorted array of social network objects. | 1 |