You are here

public function SchemaMetatagClient::__construct in Schema.org Metatag 8.2

Construct a Schema client object.

This can be used to query schema.org or a stored copy of the schema.org definitions to construct object lists and determine hierarchy.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

File

src/SchemaMetatagClient.php, line 57

Class

SchemaMetatagClient
Class SchemaMetatagClient.

Namespace

Drupal\schema_metatag

Code

public function __construct(ModuleHandlerInterface $moduleHandler, CacheBackendInterface $cache_backend) {
  $this->moduleHandler = $moduleHandler;
  $this->cacheBackend = $cache_backend;
}