- Since
- 1.37
- Author
- DannyS712
Definition at line 45 of file ActionFactory.php.
◆ __construct()
MediaWiki\Actions\ActionFactory::__construct |
( |
array | $actionsConfig, |
|
|
LoggerInterface | $logger, |
|
|
ObjectFactory | $objectFactory, |
|
|
HookContainer | $hookContainer ) |
- Parameters
-
array | $actionsConfig | Configured actions (eg those added by extensions to $wgActions) |
LoggerInterface | $logger | |
ObjectFactory | $objectFactory | |
HookContainer | $hookContainer | |
Definition at line 213 of file ActionFactory.php.
◆ actionExists()
MediaWiki\Actions\ActionFactory::actionExists |
( |
string | $actionName | ) |
|
◆ getAction()
MediaWiki\Actions\ActionFactory::getAction |
( |
string | $actionName, |
|
|
Article | $article, |
|
|
IContextSource | $context ) |
Get an appropriate Action subclass for the given action, taking into account Article-specific overrides.
- Parameters
-
- Returns
- Action|false|null False if the action is disabled, null if not recognized
Definition at line 254 of file ActionFactory.php.
References Article\getActionOverrides().
◆ getActionName()
MediaWiki\Actions\ActionFactory::getActionName |
( |
IContextSource | $context | ) |
|
Get the name of the action that will be executed, not necessarily the one passed through the "action" request parameter.
Actions disabled in $wgActions will be replaced by "nosuchaction".
- Parameters
-
- Returns
- string Action name
Definition at line 331 of file ActionFactory.php.
◆ getArticle()
MediaWiki\Actions\ActionFactory::getArticle |
( |
IContextSource | $context | ) |
|
|
protected |
Protected to allow overriding with a partial mock in unit tests.
- Parameters
-
- Returns
- Article
Definition at line 410 of file ActionFactory.php.
The documentation for this class was generated from the following file: