public function NodeReadTime::buildOptionsForm in Node read time 8
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ field/ NodeReadTime.php, line 87
Class
- NodeReadTime
- Field handler to node read time.
Namespace
Drupal\node_read_time\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['message_not_enable'] = [
'#title' => $this
->t('Message to display in case node read time is not enabled'),
'#description' => $this
->t('This text will be displayed in case the node type
does not have read time enable. Can be empty.'),
'#type' => 'textfield',
'#default_value' => $this->options['message_not_enable'],
];
parent::buildOptionsForm($form, $form_state);
}