You are here

public function SocialSimpleBlock::__construct in Social simple 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Block/SocialSimpleBlock.php \Drupal\social_simple\Plugin\Block\SocialSimpleBlock::__construct()

Constructs a new SocialSimpleBlock object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

string $plugin_definition: The plugin implementation definition.

\Drupal\Core\Controller\TitleResolver $title_resolver: The title resolver service.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Routing\CurrentRouteMatch $current_route_match: The current route match.

\Drupal\social_simple\SocialSimpleGenerator $social_simple_generator: The social simple generator service.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/SocialSimpleBlock.php, line 72

Class

SocialSimpleBlock
Provides a 'SocialSimpleBlock' block.

Namespace

Drupal\social_simple\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TitleResolver $title_resolver, RequestStack $request_stack, CurrentRouteMatch $current_route_match, SocialSimpleGenerator $social_simple_generator) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->titleResolver = $title_resolver;
  $this->requestStack = $request_stack;
  $this->currentRouteMatch = $current_route_match;
  $this->socialSimpleGenerator = $social_simple_generator;
}