You are here

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

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

Get singleton instance.

2 calls to OpenGraphMeta::instance()
OGMTTestBase::setUp in tests/TestBase.inc
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
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 71

Class

OpenGraphMeta

Code

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