class CourseObject in Course 8.2
Same name in this branch
- 8.2 src/Annotation/CourseObject.php \Drupal\course\Annotation\CourseObject
- 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject
Same name and namespace in other branches
- 8.3 src/Annotation/CourseObject.php \Drupal\course\Annotation\CourseObject
- 3.x src/Annotation/CourseObject.php \Drupal\course\Annotation\CourseObject
Defines a Course object item annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\course\Annotation\CourseObject
Expanded class hierarchy of CourseObject
See also
\Drupal\course\Plugin\Course\Object\CourseObjectManager
1 file declares its use of CourseObject
- CourseObjectPluginManager.php in src/
Plugin/ CourseObjectPluginManager.php
8 classes are annotated with CourseObject
- CourseObjectBook in modules/
course_book/ src/ Plugin/ course/ CourseObject/ CourseObjectBook.php - Plugin annotation @CourseObject( id = "book", label = "Book", handlers = { "fulfillment" = "\Drupal\course_book\Plugin\course\CourseObject\CourseObjectBookFulfillment" } )
- CourseObjectCertificate in modules/
course_certificate/ src/ Plugin/ course/ CourseObject/ CourseObjectCertificate.php - Plugin annotation @CourseObject( id = "certificate", label = "Certificate", handlers = { "fulfillment" = "\Drupal\course\Entity\CourseObjectFulfillment" } )
- CourseObjectContent in modules/
course_content/ src/ Plugin/ course/ CourseObject/ CourseObjectContent.php - Plugin annotation @CourseObject( id = "content", label = "Course content", handlers = { "fulfillment" = "\Drupal\course_content\Course\Object\CourseObjectNodeFulfillment" } )
- CourseObjectGradedTest in modules/
course_test/ src/ Plugin/ course/ CourseObject/ CourseObjectGradedTest.php - Plugin annotation @CourseObject( id = "course_test_graded_object", label = "Test graded course object", handlers = { "fulfillment" = "\Drupal\course_test\Plugin\course\CourseObject\CourseObjectTestFulfillment" } )
- CourseObjectManual in modules/
course_object_manual/ src/ Plugin/ course/ CourseObject/ CourseObjectManual.php - Plugin annotation @CourseObject( id = "manual", label = "Manual step", handlers = { "fulfillment" = "\Drupal\course\Entity\CourseObjectFulfillment" } )
File
- src/
Annotation/ CourseObject.php, line 16
Namespace
Drupal\course\AnnotationView source
class CourseObject extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The label of the plugin.
*
* @var Translation
*
* @ingroup plugin_translatable
*/
public $label;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CourseObject:: |
public | property | The plugin ID. | |
CourseObject:: |
public | property | The label 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 |