class FlagType in Flag 8.4
Defines a FlagType annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\flag\Annotation\FlagType
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\AnnotationView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FlagType:: |
public | property | The entity type the flag type supports. | |
FlagType:: |
public | property | The title of the plugin. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |