You are here

GutenbergPlugin.php in Gutenberg 8.2

Same filename and directory in other branches
  1. 8 src/Annotation/GutenbergPlugin.php

File

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

namespace Drupal\gutenberg\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a GutenbergPlugin annotation object.
 *
 * Plugin Namespace: Plugin\GutenbergPlugin.
 *
 * For a working example, see
 * \Drupal\gutenberg\Plugin\GutenbergPlugin\DrupalImage
 *
 * @see \Drupal\gutenberg\GutenbergPluginManager
 * @see hook_gutenberg_plugin_info_alter()
 * @see plugin_api
 *
 * @Annotation
 */
class GutenbergPlugin extends Plugin {

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

  /**
   * The human-readable name of the Gutenberg plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;

}

Classes

Namesort descending Description
GutenbergPlugin Defines a GutenbergPlugin annotation object.