public function shouldApplyFilter() {
    if ($this->checkMentionTypes()) {
      return TRUE;
    }
    elseif ($this->textFormat && ($format = FilterFormat::load($this->textFormat))) {
      $filters = $format->get('filters');

      if (!empty($filters['filter_mentions']['status'])) {
        $this->settings = $filters['filter_mentions']['settings'];

        return $this->checkMentionTypes();
      }
    }

    return FALSE;
  }
public function shouldApplyFilter() {
    if ($this->checkMentionTypes()) {
      return TRUE;
    }
    elseif ($this->textFormat && ($format = FilterFormat::load($this->textFormat))) {
      $filters = $format->get('filters');

      if (!empty($filters['filter_mentions']['status'])) {
        $this->settings = $filters['filter_mentions']['settings'];

        return $this->checkMentionTypes();
      }
    }

    return FALSE;
  }
public function shouldApplyFilter ( ) { if ( $ this -> checkMentionTypes ( ) ) { return TRUE ; } elseif ( $ this -> textFormat && ( $ format = FilterFormat :: load ( $ this -> textFormat ) ) ) { $ filters = $ format -> get ( 'filters' ) ; if ( ! empty ( $ filters [ 'filter_mentions' ] [ 'status' ] ) ) { $ this -> settings = $ filters [ 'filter_mentions' ] [ 'settings' ] ; return $ this -> checkMentionTypes ( ) ; } } return FALSE ; }
Checks if a textFormat filter should be applied.

@return bool
TRUE if filter should applied, otherwise FALSE.
Checks if a textFormat filter should be applied .