View source
<?php
namespace Drupal\schema_metatag_test;
use Drupal\schema_metatag\SchemaMetatagClient as SchemaMetatagClientOriginal;
class SchemaMetatagClient extends SchemaMetatagClientOriginal {
public function getLocalFile() {
return '';
}
public function getObjects($clear = FALSE) {
return [];
}
public function getProperties($clear = FALSE) {
return [];
}
public function getObjectTree($clear = FALSE, $clear_objects = FALSE) {
return [
'Thing' => [
'Action' => [
'ConsumeAction' => [
'ReadAction' => [],
'ViewAction' => [],
'WatchAction' => [],
],
'TradeAction' => [
'BuyAction' => [],
'OrderAction' => [],
],
'OrganizeAction' => [
'PlanAction' => [
'ReserveAction' => [],
],
],
'SearchAction' => [],
],
'CreativeWork' => [
'Article' => [],
'Book' => [],
'Clip' => [],
'Comment' => [
'Answer' => [],
],
'Course' => [],
'CreativeWorkSeason' => [],
'MediaObject' => [
'ImageObject' => [],
'VideoObject' => [],
],
'Movie' => [],
'HowTo' => [
'Recipe' => [],
],
'HowToStep' => [],
'Question' => [],
'Review' => [],
'SpecialAnnouncement' => [],
'WebPage' => [
'QAPage' => [],
'FAQPage' => [],
],
'WebPageElement' => [],
'WebSite' => [],
],
'DataType' => [
'Boolean' => [],
'Date' => [],
'DateTime' => [],
'Number' => [],
'Text' => [
'URL' => [],
],
'Time' => [],
],
'Event' => [
'PublicationEvent' => [],
],
'Intangible' => [
'Brand' => [],
'ContactPoint' => [
'PostalAddress' => [],
],
'EntryPoint' => [],
'ItemList' => [
'BreadcrumbList' => [],
],
'JobPosting' => [],
'Offer' => [],
'ProgramMembership' => [],
'Quantity' => [
'Duration' => [],
'Mass' => [],
],
'Rating' => [
'AggregateRating' => [],
],
'Series' => [
'CreativeWorkSeries' => [],
],
'Service' => [
'GovernmentService' => [],
],
'SpeakableSpecification' => [],
'StructuredValue' => [
'ContactPoint' => [],
'GeoCoordinates' => [],
'MonetaryAmount' => [],
'NutritionInformation' => [],
'OpeningHoursSpecification' => [],
'QuantitativeValue' => [],
],
],
'Organization' => [
'GovernmentOrganization' => [],
'LocalBusiness' => [
'FoodEstablishment' => [
'Restaurant' => [],
],
'GovernmentOffice' => [],
],
],
'Person' => [],
'Place' => [
'AdministrativeArea' => [
'Country' => [],
],
],
'Product' => [],
],
];
}
public function getTree($parent_name = NULL, $depth = -1, $clear = FALSE, $clear_tree = FALSE, $clear_objects = FALSE) {
$base_tree = $this
->getObjectTree();
return $this
->getUncachedTree($base_tree, $parent_name, $depth);
}
}