You are here

public static function OpenGraphMeta::instance in Open Graph meta tags 7

Same name and namespace in other branches
  1. 6 opengraph_meta.common.inc \OpenGraphMeta::instance()
  2. 7.2 opengraph_meta.common.inc \OpenGraphMeta::instance()

Get singleton instance.

2 calls to OpenGraphMeta::instance()
OGMTTestBase::setUp in tests/TestBase.inc
Sets up a Drupal site for running functional and integration tests.
OGMTTestBase::tearDown in tests/TestBase.inc
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

File

./opengraph_meta.common.inc, line 67

Class

OpenGraphMeta

Code

public static function instance() {
  if (empty(self::$instance)) {
    self::$instance = new OpenGraphMeta();
  }
  return self::$instance;
}