public function EmbedButton::getTypePlugin in Embed 8
Returns the plugin of the associated embed type.
Return value
\Drupal\embed\EmbedType\EmbedTypeInterface The plugin of the embed type.
Overrides EmbedButtonInterface::getTypePlugin
1 call to EmbedButton::getTypePlugin()
- EmbedButton::calculateDependencies in src/
Entity/ EmbedButton.php - Calculates dependencies and stores them in the dependency property.
File
- src/
Entity/ EmbedButton.php, line 107
Class
- EmbedButton
- Defines the EmbedButton entity.
Namespace
Drupal\embed\EntityCode
public function getTypePlugin() {
if ($plugin_id = $this
->getTypeId()) {
return $this
->embedTypeManager()
->createInstance($plugin_id, $this
->getTypeSettings());
}
}