You are here

class OGHeaders in Share Message 8

OGHeaders plugin.

Plugin annotation


@SharePlugin(
  id = "ogheaders",
  label = @Translation("OG Headers"),
  description = @Translation("Open graph headers are used when users want to use it as a framework or a background tool only.")
)

Hierarchy

Expanded class hierarchy of OGHeaders

File

src/Plugin/sharemessage/OGHeaders.php, line 17

Namespace

Drupal\sharemessage\Plugin\sharemessage
View source
class OGHeaders extends SharePluginBase implements SharePluginInterface {

  /**
   * {@inheritdoc}
   */
  public function build($context, $plugin_attributes) {

    // Og tags are build by default in ShareMessageViewBuilder.
    return;
  }

  /**
   * {@inheritdoc}
   */
  public function getSetting($key) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
OGHeaders::build public function Creates the AddThis toolbar. Overrides SharePluginInterface::build
OGHeaders::getSetting public function Gets the setting for $key with overrides if applicable. Overrides SharePluginInterface::getSetting
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
SharePluginBase::$shareMessage protected property Share Message.
SharePluginBase::buildConfigurationForm public function Form constructor. Overrides PluginFormInterface::buildConfigurationForm 3
SharePluginBase::calculateDependencies public function
SharePluginBase::defaultConfiguration public function Provides the action link plugin's default configuration. Overrides ConfigurableInterface::defaultConfiguration
SharePluginBase::getConfiguration public function Provides the action link plugin's current configuration array. Overrides ConfigurableInterface::getConfiguration
SharePluginBase::setConfiguration public function Updates the plugin's current configuration. Overrides ConfigurableInterface::setConfiguration
SharePluginBase::submitConfigurationForm public function Form submission handler. Overrides PluginFormInterface::submitConfigurationForm
SharePluginBase::validateConfigurationForm public function Form validation handler. Overrides PluginFormInterface::validateConfigurationForm 1
SharePluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. Overrides PluginBase::__construct 1
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.