Loading src/Plugin/Block/WhatsappBlock.php +4 −4 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ namespace Drupal\whatsapp\Plugin\Block; use Drupal\Core\Block\BlockBase; use Drupal\Core\Cache\Cache; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\key\KeyRepository; use Drupal\key\KeyRepositoryInterface; use Drupal\key\Key; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Symfony\Component\DependencyInjection\ContainerInterface; Loading @@ -30,7 +30,7 @@ class WhatsappBlock extends BlockBase implements ContainerFactoryPluginInterface /** * The key. * * @var \Drupal\key\KeyRepository * @var \Drupal\key\KeyRepositoryInterface */ protected $configKey; Loading @@ -45,10 +45,10 @@ class WhatsappBlock extends BlockBase implements ContainerFactoryPluginInterface * The plugin implementation definition. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\key\KeyRepository $config_key * @param \Drupal\key\KeyRepositoryInterface $config_key * The key. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, KeyRepository $config_key) { public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, KeyRepositoryInterface $config_key) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->configFactory = $config_factory; $this->configKey = $config_key; Loading Loading
src/Plugin/Block/WhatsappBlock.php +4 −4 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ namespace Drupal\whatsapp\Plugin\Block; use Drupal\Core\Block\BlockBase; use Drupal\Core\Cache\Cache; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\key\KeyRepository; use Drupal\key\KeyRepositoryInterface; use Drupal\key\Key; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Symfony\Component\DependencyInjection\ContainerInterface; Loading @@ -30,7 +30,7 @@ class WhatsappBlock extends BlockBase implements ContainerFactoryPluginInterface /** * The key. * * @var \Drupal\key\KeyRepository * @var \Drupal\key\KeyRepositoryInterface */ protected $configKey; Loading @@ -45,10 +45,10 @@ class WhatsappBlock extends BlockBase implements ContainerFactoryPluginInterface * The plugin implementation definition. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\key\KeyRepository $config_key * @param \Drupal\key\KeyRepositoryInterface $config_key * The key. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, KeyRepository $config_key) { public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, KeyRepositoryInterface $config_key) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->configFactory = $config_factory; $this->configKey = $config_key; Loading