32 parent::__construct( $params );
34 if ( array_key_exists(
'activeOnly', $params ) ) {
35 $this->activeOnly = $params[
'activeOnly'];
37 if ( array_key_exists(
'useAllTags', $params ) ) {
38 $this->useAllTags = $params[
'useAllTags'];
42 private function buildTagFilter(
string $value,
string $format ): bool {
43 $this->tagFilter =
MediaWikiServices::getInstance()->getChangeTagsFormatter()->buildTagFilter(
46 $this->mParent->getContext(),
55 if ( $this->buildTagFilter( $value,
'other' ) ) {
56 return parent::getTableRow( $value );
63 if ( $this->buildTagFilter( $value,
'other' ) ) {
64 return parent::getDiv( $value );
71 if ( $this->buildTagFilter( $value,
'ooui' ) ) {
72 return parent::getOOUI( $value );
74 return new \OOUI\FieldLayout(
new \OOUI\Widget() );
79 if ( $this->buildTagFilter( $value,
'codex' ) ) {
80 return parent::getCodex( $value );
87 if ( $this->tagFilter ) {
89 return $this->tagFilter[1];
96 if ( $this->tagFilter ) {
98 return $this->tagFilter[1];
110class_alias( HTMLTagFilter::class,
'HTMLTagFilter' );