external_entities-8.x-2.x-dev/src/Plugin/PluginDebugTrait.php
src/Plugin/PluginDebugTrait.php
<?php
namespace Drupal\external_entities\Plugin;
/**
* Provides default implementations for plugin debug features.
*/
trait PluginDebugTrait {
/**
* Debug level of current instance.
*
* @var int
*/
protected $debugLevel;
/**
* {@inheritdoc}
*/
public function getDebugLevel() :int {
return $this->debugLevel ?? 0;
}
/**
* {@inheritdoc}
*/
public function setDebugLevel(int $debug_level = 1) {
$this->debugLevel = $debug_level;
}
}
