You are here

class Formatter in RESTful 7.2

Same name in this branch
  1. 7.2 src/Annotation/Formatter.php \Drupal\restful\Annotation\Formatter
  2. 7.2 src/Plugin/formatter/Formatter.php \Drupal\restful\Plugin\formatter\Formatter

Defines a Formatter annotation object.

Hierarchy

  • class \Drupal\restful\Annotation\Formatter extends \Drupal\Component\Annotation\Plugin

Expanded class hierarchy of Formatter

5 classes are annotated with Formatter
FormatterHalJson in src/Plugin/formatter/FormatterHalJson.php
Class FormatterHalJson @package Drupal\restful\Plugin\formatter
FormatterHalXml in modules/restful_example/src/Plugin/formatter/FormatterHalXml.php
Class FormatterHalXml @package Drupal\restful\Plugin\formatter
FormatterJson in src/Plugin/formatter/FormatterJson.php
Class FormatterHalJson.
FormatterJsonApi in src/Plugin/formatter/FormatterJsonApi.php
Class FormatterJsonApi @package Drupal\restful\Plugin\formatter
FormatterSingleJson in src/Plugin/formatter/FormatterSingleJson.php
Class FormatterSingleJson @package Drupal\restful\Plugin\formatter

File

src/Annotation/Formatter.php, line 19
Contains \Drupal\restful\Annotation\Formatter.

Namespace

Drupal\restful\Annotation
View source
class Formatter extends Plugin {

  /**
   * The human readable name.
   *
   * @var string
   */
  public $label;

  /**
   * The description.
   *
   * @var string
   */
  public $description;

  /**
   * Information about the curie
   *
   * @var array
   */
  public $curie;

}

Members

Namesort descending Modifiers Type Description Overrides
Formatter::$curie public property Information about the curie
Formatter::$description public property The description.
Formatter::$label public property The human readable name.