public function ParagraphsType::getBehaviorPlugins

Returns the ordered collection of feature plugin instances.

Return value

\Drupal\paragraphs\ParagraphsBehaviorCollection The behavior plugins collection.

Overrides ParagraphsTypeInterface::getBehaviorPlugins

3 calls to ParagraphsType::getBehaviorPlugins()
ParagraphsType::getPluginCollections in paragraphs/src/Entity/ParagraphsType.php
ParagraphsType::hasEnabledBehaviorPlugin in paragraphs/src/Entity/ParagraphsType.php
Returns TRUE if $plugin_id is enabled on this ParagraphType Entity.
ParagraphsType::onDependencyRemoval in paragraphs/src/Entity/ParagraphsType.php

File

paragraphs/src/Entity/ParagraphsType.php, line 176

Class

ParagraphsType
Defines the ParagraphsType entity.

Namespace

Drupal\paragraphs\Entity

Code

public function getBehaviorPlugins() {
  if (!isset($this->behaviorCollection)) {
    $this->behaviorCollection = new ParagraphsBehaviorCollection(\Drupal::service('plugin.manager.paragraphs.behavior'), $this->behavior_plugins);
  }
  return $this->behaviorCollection;
}