You are here

class FlagType in Flag 8.4

Defines a FlagType annotation object.

Hierarchy

Expanded class hierarchy of FlagType

5 classes are annotated with FlagType
AccessDenied in tests/modules/flag_test_plugins/src/Plugin/Flag/AccessDenied.php
Test flag type plugin which denies access.
AccessGranted in tests/modules/flag_test_plugins/src/Plugin/Flag/AccessGranted.php
Test flag type plugin which denies access.
CommentFlagType in src/Plugin/Flag/CommentFlagType.php
Provides a flag type for comments.
EntityFlagType in src/Plugin/Flag/EntityFlagType.php
Provides a flag type for all entity types.
UserFlagType in src/Plugin/Flag/UserFlagType.php
Provides a flag type for user entities.

File

src/Annotation/FlagType.php, line 12

Namespace

Drupal\flag\Annotation
View source
class FlagType extends Plugin {

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

  /**
   * The entity type the flag type supports.
   *
   * @var string
   */
  public $entity_type;

}

Members

Namesort descending Modifiers Type Description Overrides
FlagType::$entity_type public property The entity type the flag type supports.
FlagType::$title public property The title of the plugin.
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