You are here

class Network in Social API 8

Same name and namespace in other branches
  1. 8.2 src/Annotation/Network.php \Drupal\social_api\Annotation\Network
  2. 3.x src/Annotation/Network.php \Drupal\social_api\Annotation\Network

Defines a Social Network item annotation object.

Hierarchy

Expanded class hierarchy of Network

See also

\Drupal\social_api\Plugin\NetworkManager

Plugin API

File

src/Annotation/Network.php, line 15

Namespace

Drupal\social_api\Annotation
View source
class Network extends Plugin {

  /**
   * The module machine name.
   *
   * @var string
   */
  public $id;

  /**
   * The social network service implemented by the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $social_network;

  /**
   * The type of the plugin.
   *
   * @var string
   */
  public $type;

  /**
   * A list of extra handlers.
   *
   * @var array
   *
   * @todo Check the entity type plugins to copy from.
   */
  public $handlers = array();

}

Members

Namesort descending Modifiers Type Description Overrides
Network::$handlers public property A list of extra handlers.
Network::$id public property The module machine name.
Network::$social_network public property The social network service implemented by the plugin.
Network::$type public property The type of the plugin.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2