You are here

interface SharePluginInterface in Share Message 8

Interface for source plugin controllers.

Hierarchy

Expanded class hierarchy of SharePluginInterface

All classes that implement SharePluginInterface

4 files declare their use of SharePluginInterface
Addthis.php in src/Plugin/sharemessage/Addthis.php
OGHeaders.php in src/Plugin/sharemessage/OGHeaders.php
Sharrre.php in src/Plugin/sharemessage/Sharrre.php
SocialSharePrivacy.php in src/Plugin/sharemessage/SocialSharePrivacy.php

File

src/SharePluginInterface.php, line 13

Namespace

Drupal\sharemessage
View source
interface SharePluginInterface extends ConfigurableInterface, PluginFormInterface {

  /**
   * Creates the AddThis toolbar.
   *
   * @param array $context
   *   The form structure.
   * @param $plugin_attributes
   *   Custom plugin attributes.
   *
   * @return array $build
   *   Returns the modified configuration form structure.
   */
  public function build($context, $plugin_attributes);

  /**
   * Gets the setting for $key with overrides if applicable.
   *
   * @var string $key
   *
   * @return mixed
   */
  public function getSetting($key);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
PluginFormInterface::buildConfigurationForm public function Form constructor. 36
PluginFormInterface::submitConfigurationForm public function Form submission handler. 32
PluginFormInterface::validateConfigurationForm public function Form validation handler. 18
SharePluginInterface::build public function Creates the AddThis toolbar. 4
SharePluginInterface::getSetting public function Gets the setting for $key with overrides if applicable. 4