public function ParagraphsGridLayoutPlugin::__construct in Paragraphs Collection 8
ParagraphsGridLayoutPlugin constructor.
Parameters
array $configuration: The configuration array.
string $plugin_id: This plugin id.
mixed $plugin_definition: Plugin definition.
\Drupal\Core\Entity\EntityFieldManager $entity_field_manager: Entity field manager service.
\Drupal\paragraphs_collection\GridLayoutDiscoveryInterface $grid_layout_discovery: The grid discovery service.
Overrides ParagraphsBehaviorBase::__construct
File
- src/
Plugin/ paragraphs/ Behavior/ ParagraphsGridLayoutPlugin.php, line 52
Class
- ParagraphsGridLayoutPlugin
- Provides a way to define grid based layouts.
Namespace
Drupal\paragraphs_collection\Plugin\paragraphs\BehaviorCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManager $entity_field_manager, GridLayoutDiscoveryInterface $grid_layout_discovery) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_field_manager);
$this->gridLayoutDiscovery = $grid_layout_discovery;
}