}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function isPerGroupRequestParameter() {
return true;
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected function createFilter( array $filterDefinition ) {
return new ChangesListStringOptionsFilter( $filterDefinition );
* @param string $value URL parameter value
*/
public function modifyQuery( IDatabase $dbr, ChangesListSpecialPage $specialPage,
- &$tables, &$fields, &$conds, &$query_options, &$join_conds, $value ) {
-
+ &$tables, &$fields, &$conds, &$query_options, &$join_conds, $value
+ ) {
$allowedFilterNames = [];
foreach ( $this->filters as $filter ) {
$allowedFilterNames[] = $filter->getName();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getJsData() {
$output = parent::getJsData();
return $output;
}
+
+ /**
+ * Check if this filter group is currently active
+ *
+ * @param {boolean} $isStructuredUI Is structured filters UI current enabled
+ */
+ public function isActive( $isStructuredUI ) {
+ // STRING_OPTIONS filter groups are exclusively active on Structured UI
+ return $isStructuredUI;
+ }
}