ProdCheckProcessorBase.php in Production check & Production monitor 8        
                          
                  
                        
  
  
  
  
  
File
  src/Plugin/ProdCheckProcessor/ProdCheckProcessorBase.php
  
    View source  
  <?php
namespace Drupal\prod_check\Plugin\ProdCheckProcessor;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Plugin\PluginBase;
use Drupal\prod_check\Plugin\ProdCheckCategoryPluginManager;
use Drupal\prod_check\Plugin\ProdCheckInterface;
use Drupal\prod_check\Plugin\ProdCheckPluginManager;
use Drupal\prod_check\Plugin\ProdCheckProcessorInterface;
use Drupal\prod_check\ProdCheck;
use Symfony\Component\DependencyInjection\ContainerInterface;
abstract class ProdCheckProcessorBase extends PluginBase implements ContainerFactoryPluginInterface, ProdCheckProcessorInterface {
  
  protected $checkManager;
  
  protected $categoryManager;
  
  public function __construct(array $configuration, $plugin_id, $plugin_definition, ProdCheckPluginManager $manager, ProdCheckCategoryPluginManager $category_manager) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->checkManager = $manager;
    $this->categoryManager = $category_manager;
  }
  
  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container
      ->get('plugin.manager.prod_check'), $container
      ->get('plugin.manager.prod_check_categories'));
  }
  
  public function process(ProdCheckInterface $plugin) {
    return [];
  }
  
  public function info() {
    return ProdCheck::REQUIREMENT_INFO;
  }
  
  public function ok() {
    return ProdCheck::REQUIREMENT_OK;
  }
  
  public function warning() {
    return ProdCheck::REQUIREMENT_WARNING;
  }
  
  public function error() {
    return ProdCheck::REQUIREMENT_ERROR;
  }
}