protected function ParagraphsBehaviorCollection::initializePlugin

1 call to ParagraphsBehaviorCollection::initializePlugin()
ParagraphsBehaviorCollection::getAll in paragraphs/src/ParagraphsBehaviorCollection.php
Retrieves all behavior plugins definitions and creates an instance for each one.

File

paragraphs/src/ParagraphsBehaviorCollection.php, line 66

Class

ParagraphsBehaviorCollection
A collection of paragraphs behavior plugins.

Namespace

Drupal\paragraphs

Code

protected function initializePlugin($instance_id) {
  $configuration = isset($this->configurations[$instance_id]) ? $this->configurations[$instance_id] : [];
  $this
    ->set($instance_id, $this->manager
    ->createInstance($instance_id, $configuration));
}