You are here

final public function MyBlogLink::__construct in Blog 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Menu/MyBlogLink.php \Drupal\blog\Plugin\Menu\MyBlogLink::__construct()

Constructs a new MenuLinkDefault.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Menu\StaticMenuLinkOverridesInterface $static_override: The static override storage.

Overrides MenuLinkDefault::__construct

File

src/Plugin/Menu/MyBlogLink.php, line 25

Class

MyBlogLink
Represents a menu link for "My blog".

Namespace

Drupal\blog\Plugin\Menu

Code

public final function __construct(array $configuration, $plugin_id, $plugin_definition, StaticMenuLinkOverridesInterface $static_override, AccountInterface $current_user) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $static_override);
  $this->currentUser = $current_user;
}