You are here

public function MenuLinkContentVisibilityWidget::__construct in Custom Menu Links Visibility 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldWidget/MenuLinkContentVisibilityWidget.php \Drupal\menu_link_content_visibility\Plugin\Field\FieldWidget\MenuLinkContentVisibilityWidget::__construct()

@inheritDoc

Overrides WidgetBase::__construct

File

src/Plugin/Field/FieldWidget/MenuLinkContentVisibilityWidget.php, line 50

Class

MenuLinkContentVisibilityWidget
Plugin annotation @FieldWidget( label = @Translation("Menu link visibility"), id = "menu_link_content_visibility", field_types = { "menu_link_content_visibility" }, )

Namespace

Drupal\menu_link_content_visibility\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, ConditionManager $condition_manager, ContextRepositoryInterface $context_repository) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
  $this->condition_manager = $condition_manager;
  $this->context_repository = $context_repository;
}