You are here

class SocialLinkFieldPlatform in Social Link Field 8

Defines a platform item annotation object.

Hierarchy

Expanded class hierarchy of SocialLinkFieldPlatform

13 classes are annotated with SocialLinkFieldPlatform
Behance in src/Plugin/SocialLinkField/Platform/Behance.php
Provides 'behance' platform.
BitBucket in src/Plugin/SocialLinkField/Platform/BitBucket.php
Provides 'BitBucket' platform.
Drupal in src/Plugin/SocialLinkField/Platform/Drupal.php
Provides 'drupal' platform.
Email in src/Plugin/SocialLinkField/Platform/Email.php
Provides 'Email' platform.
Facebook in src/Plugin/SocialLinkField/Platform/Facebook.php
Provides 'facebook' platform.

... See full list

File

src/Annotation/SocialLinkFieldPlatform.php, line 12

Namespace

Drupal\social_link_field\Annotation
View source
class SocialLinkFieldPlatform extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * UTF code of the icon.
   *
   * @var string
   */
  public $icon;

  /**
   * UTF code of the square icon.
   *
   * @var string
   */
  public $iconSquare;

  /**
   * The name of the platform.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $name;

  /**
   * The url prefix of the platform.
   *
   * @var string
   */
  public $urlPrefix;

  /**
   * The url suffix of the platform.
   *
   * @var string
   */
  public $urlSuffix;

}

Members

Namesort descending Modifiers Type Description Overrides
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
SocialLinkFieldPlatform::$icon public property UTF code of the icon.
SocialLinkFieldPlatform::$iconSquare public property UTF code of the square icon.
SocialLinkFieldPlatform::$id public property The plugin ID.
SocialLinkFieldPlatform::$name public property The name of the platform.
SocialLinkFieldPlatform::$urlPrefix public property The url prefix of the platform.
SocialLinkFieldPlatform::$urlSuffix public property The url suffix of the platform.