public function ParagraphsLockablePlugin::__construct in Paragraphs Collection 8
Constructs a new ParagraphsLockablePlugin object.
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\Entity\EntityFieldManager $entity_field_manager: Entity Field Manager for base.
\Drupal\Core\Session\AccountProxyInterface $currentUser: Current user for permissions scope.
Overrides ParagraphsBehaviorBase::__construct
File
- src/
Plugin/ paragraphs/ Behavior/ ParagraphsLockablePlugin.php, line 51
Class
- ParagraphsLockablePlugin
- Provides a Paragraphs Lockable plugin.
Namespace
Drupal\paragraphs_collection\Plugin\paragraphs\BehaviorCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManager $entity_field_manager, AccountProxyInterface $currentUser) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_field_manager);
$this->currentUser = $currentUser;
}