You are here

public function ShareMessage::getPlugin in Share Message 8

Returns the plugin instance.

Return value

\Drupal\sharemessage\SharePluginInterface The plugin instance for this Share Message.

Overrides ShareMessageInterface::getPlugin

1 call to ShareMessage::getPlugin()
ShareMessage::getPluginDefinition in src/Entity/ShareMessage.php
Gets the definition of the plugin implementation.

File

src/Entity/ShareMessage.php, line 197

Class

ShareMessage
Entity class for the Share Message entity.

Namespace

Drupal\sharemessage\Entity

Code

public function getPlugin() {
  return \Drupal::service('plugin.manager.sharemessage.share')
    ->createInstance($this->plugin, [
    'sharemessage' => $this,
  ]);
}