/** * Override the default action behavior for videos * * @return array - Associative array of action to class that should handle that action */ public function getActionOverrides() { if ($this->isVideo()) { return array('revert' => 'WikiaRevertVideoAction'); } else { return parent::getActionOverrides(); } }