class CustomPlugin

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryTest.php \Drupal\Tests\Component\Annotation\CustomPlugin
  2. 11.x core/tests/fixtures/plugins/CustomPlugin.php \com\example\PluginNamespace\CustomPlugin

Custom plugin annotation.

Hierarchy

Expanded class hierarchy of CustomPlugin

Related topics

File

core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryTest.php, line 76

Namespace

Drupal\Tests\Component\Annotation
View source
class CustomPlugin extends Plugin {
  
  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;
  
  /**
   * The plugin title.
   *
   * @var string
   *
   * @ingroup plugin_translatable
   */
  public $title = '';

}

Members

Title Sort descending Modifiers Object type Summary Overrides
CustomPlugin::$id public property The plugin ID.
CustomPlugin::$title public property The plugin title.
Plugin::$definition protected property The plugin definition read from the class annotation.
Plugin::get public function 2
Plugin::get public function 2
Plugin::getClass public function
Plugin::getId public function
Plugin::getProvider public function
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function
Plugin::setProvider public function
Plugin::__construct public function Constructs a Plugin object. 1
Plugin::__construct public function Constructs a Plugin object. 1

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.