}
}
+ /**
+ * {@inheritdoc}
+ */
protected function defineOptions() {
$options = parent::defineOptions();
return $options;
}
+ /**
+ * {@inheritdoc}
+ */
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
if (\Drupal::moduleHandler()->moduleExists('comment')) {
}
}
+ /**
+ * {@inheritdoc}
+ */
public function query() {
// Only add ourselves to the query if logged in.
if (\Drupal::currentUser()->isAnonymous()) {
'#theme' => 'mark',
'#status' => $mark,
];
- return $this->renderLink(drupal_render($build), $values);
+ return $this->renderLink(\Drupal::service('renderer')->render($build), $values);
}
}