Skip to content

Commit

Permalink
Merge pull request #220 from ferishili/issue_34
Browse files Browse the repository at this point in the history
make plugin available for Course only, fixes #34
  • Loading branch information
ferishili authored Mar 26, 2021
2 parents e36b23e + b9b4feb commit f1e9679
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions MeetingPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ public function __construct()
}
}

/**
* Checks if the context in which the plugin is activated is of Course type.
*
* @param Range $context
* @return bool
*/
public function isActivatableForContext(Range $context)
{
return get_class($context) === \Course::class;
}

/**
* Plugin localization for a single string.
* This method supports sprintf()-like execution if you pass additional
Expand Down

0 comments on commit f1e9679

Please sign in to comment.