public function ParagraphsType::getBehaviorPlugin

Returns an individual plugin instance.

Parameters

string $instance_id: The ID of a behavior plugin instance to return.

Return value

\Drupal\paragraphs\ParagraphsBehaviorInterface A specific feature plugin instance.

Overrides ParagraphsTypeInterface::getBehaviorPlugin

File

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

Class

ParagraphsType
Defines the ParagraphsType entity.

Namespace

Drupal\paragraphs\Entity

Code

public function getBehaviorPlugin($instance_id) {
  return $this
    ->getBehaviorPlugins()
    ->get($instance_id);
}