Commit 522596d7 authored by Ryan Hartman's avatar Ryan Hartman Committed by Ryan Hartman
Browse files

Issue #3285546 by Rakhi Soni, devkinetic: phpcs standard--drupal fixes

parent 5224c8df
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -48,6 +48,11 @@ final class ViewModeWarmer extends WarmerPluginBase {
   */
  private EntityDisplayRepositoryInterface $entityDisplayRepository;

  /**
   * The renderer.
   *
   * @var \Drupal\Core\Render\RendererInterface
   */
  private RendererInterface $renderer;

  /**
@@ -138,7 +143,7 @@ final class ViewModeWarmer extends WarmerPluginBase {
            $output[] = [
              $entity_type_id,
              $view_mode_id,
              $entity
              $entity,
            ];
          }
        }
@@ -187,7 +192,8 @@ final class ViewModeWarmer extends WarmerPluginBase {
          && $entity_type instanceof EntityPublishedInterface
        ) {
          $onlyPublished = TRUE;
        } else {
        }
        else {
          $onlyPublished = FALSE;
        }
        $entityStorage = $this->entityTypeManager->getStorage($entity_type_id);
@@ -250,14 +256,14 @@ final class ViewModeWarmer extends WarmerPluginBase {
      '#options' => $options,
      '#default_value' => empty($configuration['entity_view_modes']) ? [] : $configuration['entity_view_modes'],
      '#multiple' => TRUE,
      '#attributes' => ['style' => 'min-height: 60em;']
      '#attributes' => ['style' => 'min-height: 60em;'],
    ];

    $form['published'] = [
      '#type' => 'checkbox',
      '#title' => $this->t('Only warm published entities'),
      '#default_value' => $configuration['published'],
      '#description' => $this->t('If the entity type supports publishing.')
      '#description' => $this->t('If the entity type supports publishing.'),
    ];

    return $form;
@@ -294,6 +300,4 @@ final class ViewModeWarmer extends WarmerPluginBase {
    return $entity_view_modes;
  }
  


}