'url' => $entity->urlInfo('edit-form'),
];
}
- if ($entity->isEnabled()) {
+ if ($entity->isActivated()) {
$operations['disable'] = [
'title' => $this->t('Disable'),
'weight' => 100,
- 'url' => Url::fromRoute('entity.font.disable', ['js' => 'nojs', 'font' => $entity->id()], ['query' => \Drupal::destination()->getAsArray()]),
+ 'url' => Url::fromRoute('entity.font.deactivate', ['js' => 'nojs', 'font' => $entity->id()], ['query' => \Drupal::destination()->getAsArray()]),
];
}
- if ($entity->isDisabled()) {
+ if ($entity->isDeactivated()) {
$operations['enable'] = [
'title' => $this->t('enable'),
'weight' => 100,
- 'url' => Url::fromRoute('entity.font.enable', ['js' => 'nojs', 'font' => $entity->id()], ['query' => \Drupal::destination()->getAsArray()]),
+ 'url' => Url::fromRoute('entity.font.activate', ['js' => 'nojs', 'font' => $entity->id()], ['query' => \Drupal::destination()->getAsArray()]),
];
}