aboutsummaryrefslogtreecommitdiffstats
path: root/includes/content/JavaScriptContent.php
diff options
context:
space:
mode:
authordaniel <dkinzler@wikimedia.org>2020-06-26 14:56:03 +0200
committerdaniel <dkinzler@wikimedia.org>2020-07-07 15:38:57 +0200
commitbd5c3d06a276e5f227cafa094a821079086ab297 (patch)
tree0664c4090a8a59dc02b0b543b9dbfdfc26bc5b2c /includes/content/JavaScriptContent.php
parent804abf07f36bf7397fd56dbc5a9ba5837ce48dfc (diff)
downloadmediawikicore-bd5c3d06a276e5f227cafa094a821079086ab297.tar.gz
mediawikicore-bd5c3d06a276e5f227cafa094a821079086ab297.zip
Annotate newable classes
This annotates classes that can safely be instantiated by extensions, per the Stable Interface Policy. Bug: T247862 Change-Id: Ia280f559874fc0750265ddeb7f831e65fd7d7d6a
Diffstat (limited to 'includes/content/JavaScriptContent.php')
-rw-r--r--includes/content/JavaScriptContent.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/content/JavaScriptContent.php b/includes/content/JavaScriptContent.php
index 2ebb4777f0e9..04a9304e3223 100644
--- a/includes/content/JavaScriptContent.php
+++ b/includes/content/JavaScriptContent.php
@@ -30,6 +30,7 @@ use MediaWiki\MediaWikiServices;
/**
* Content for JavaScript pages.
*
+ * @newable
* @ingroup Content
*/
class JavaScriptContent extends TextContent {
@@ -40,6 +41,7 @@ class JavaScriptContent extends TextContent {
private $redirectTarget = false;
/**
+ * @stable for calling
* @param string $text JavaScript code.
* @param string $modelId the content model name
*/