MediaWiki master
RenderAction.php
Go to the documentation of this file.
1<?php
8namespace MediaWiki\Actions;
9
18
20 public function getName() {
21 return 'render';
22 }
23
25 public function onView() {
26 return null;
27 }
28
30 public function show() {
31 $this->getArticle()->render();
32 }
33}
34
36class_alias( RenderAction::class, 'RenderAction' );
getArticle()
Get a Article object.
Definition Action.php:203
An action which just does something, without showing a form first.
onView()
Show something on GET request.string|null Will be added to the HTMLForm if present,...
getName()
Return the name of the action this object responds to.1.17string Lowercase name