You are here

public function FlippyBlock::__construct in Flippy 8

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/FlippyBlock.php, line 56

Class

FlippyBlock
Provides a "Flippy" block.

Namespace

Drupal\flippy\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RequestStack $requestStack, FlippyPager $flippyPager, ConfigFactoryInterface $configFactoryInterface, CurrentRouteMatch $routeMatch) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->request = $requestStack
    ->getCurrentRequest();
  $this->flippyPager = $flippyPager;
  $this->flippySettings = $configFactoryInterface
    ->get('flippy.settings');
  $this->routeMatch = $routeMatch;
}