You are here

public function ParagraphsType::getBehaviorPlugins in Paragraphs 8

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 src/Entity/ParagraphsType.php
Gets the plugin collections used by this object.
ParagraphsType::hasEnabledBehaviorPlugin in src/Entity/ParagraphsType.php
Returns TRUE if $plugin_id is enabled on this ParagraphType Entity.
ParagraphsType::onDependencyRemoval in src/Entity/ParagraphsType.php
Informs the entity that entities it depends on will be deleted.

File

src/Entity/ParagraphsType.php, line 173

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;
}