You are here

class CourseObjectAccess in Course 8.3

Same name and namespace in other branches
  1. 8.2 src/Annotation/CourseObjectAccess.php \Drupal\course\Annotation\CourseObjectAccess
  2. 3.x src/Annotation/CourseObjectAccess.php \Drupal\course\Annotation\CourseObjectAccess

Defines a Course object access item annotation object.

Hierarchy

Expanded class hierarchy of CourseObjectAccess

See also

\Drupal\course\Plugin\Course\Object\CourseObjectAccessManager

Plugin API

1 file declares its use of CourseObjectAccess
CourseObjectAccessPluginManager.php in src/Plugin/CourseObjectAccessPluginManager.php
3 classes are annotated with CourseObjectAccess
CourseObjectAccessConditional in src/Plugin/course/CourseObjectAccess/CourseObjectAccessConditional.php
Plugin annotation @CourseObjectAccess( id = "conditional", label = @Translation("Conditional"), )
CourseObjectAccessGrade in src/Plugin/course/CourseObjectAccess/CourseObjectAccessGrade.php
Plugin annotation @CourseObjectAccess( id = "grade", label = @Translation("Grade"), )
CourseObjectAccessTiming in src/Plugin/course/CourseObjectAccess/CourseObjectAccessTiming.php
Plugin annotation @CourseObjectAccess( id = "timing", label = @Translation("Timing"), )

File

src/Annotation/CourseObjectAccess.php, line 15

Namespace

Drupal\course\Annotation
View source
class CourseObjectAccess extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

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

}

Members

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