You are here

public function ParagraphsType::getBehaviorPlugin in Paragraphs 8

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

src/Entity/ParagraphsType.php, line 194

Class

ParagraphsType
Defines the ParagraphsType entity.

Namespace

Drupal\paragraphs\Entity

Code

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