You are here

Network.php in Social API 3.x

Same filename and directory in other branches
  1. 8.2 src/Annotation/Network.php
  2. 8 src/Annotation/Network.php

File

src/Annotation/Network.php
View source
<?php

namespace Drupal\social_api\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a Social Network item annotation object.
 *
 * @see \Drupal\social_api\Plugin\NetworkManager
 * @see plugin_api
 *
 * @Annotation
 */
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 $socialNetwork;

  /**
   * 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 = [];

}

Classes

Namesort descending Description
Network Defines a Social Network item annotation object.