Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / fontyourface / src / FontListBuilder.php
index 10fba8c76402a87244bf6aa51b642b1bfe7cd3a6..97a6fa32276fa5ffc738213c4f72dbfbc7524b74 100644 (file)
@@ -56,18 +56,18 @@ class FontListBuilder extends EntityListBuilder {
         '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()]),
       ];
     }