public function CustomFilterBaseFilter::tips in Custom filter 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Filter/CustomFilterBaseFilter.php \Drupal\customfilter\Plugin\Filter\CustomFilterBaseFilter::tips()
Get the tips for the filter.
Parameters
bool $long: If get the long or short tip.
Return value
string The tip to show for the user.
Overrides FilterBase::tips
File
- src/
Plugin/ Filter/ CustomFilterBaseFilter.php, line 72
Class
- CustomFilterBaseFilter
- Provides a base filter for Custom Filter.
Namespace
Drupal\customfilter\Plugin\FilterCode
public function tips($long = FALSE) {
$entity = CustomFilter::load($this->settings['id']);
if ($long) {
return $entity
->getLongtip();
}
else {
return $entity
->getShorttip();
}
}