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\EntityCode
public function getBehaviorPlugin($instance_id) {
return $this
->getBehaviorPlugins()
->get($instance_id);
}