public function FormatName::init in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\field\FieldPluginBase::init().
Overrides FieldPluginBase::init
File
- lib/
Views/ filter/ Plugin/ views/ field/ FormatName.php, line 29 - Definition of Views\filter\Plugin\views\field\FormatName.
Class
- FormatName
- Field handler to output the name of an input format.
Namespace
Views\filter\Plugin\views\fieldCode
public function init(ViewExecutable $view, &$options) {
parent::init($view, $options);
// Be explicit about the table we are using.
$this->additional_fields['name'] = array(
'table' => 'filter_formats',
'field' => 'name',
);
}