You are here

class CourseObject in Course 8.2

Same name in this branch
  1. 8.2 src/Annotation/CourseObject.php \Drupal\course\Annotation\CourseObject
  2. 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject
Same name and namespace in other branches
  1. 8.3 src/Annotation/CourseObject.php \Drupal\course\Annotation\CourseObject
  2. 3.x src/Annotation/CourseObject.php \Drupal\course\Annotation\CourseObject

Defines a Course object item annotation object.

Hierarchy

Expanded class hierarchy of CourseObject

See also

\Drupal\course\Plugin\Course\Object\CourseObjectManager

Plugin API

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" } )

... See full list

File

src/Annotation/CourseObject.php, line 16

Namespace

Drupal\course\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
CourseObject::$id public property The plugin ID.
CourseObject::$label public property The label 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