Layer: Core · Source: lib/core/BlogSchema.php:19 (lines 19–112)
class BlogSchema
| Tag | Value |
|---|---|
@category | Core |
@author | M.Noermoehammad |
@license | MIT |
No parent, interface or trait. This is a root type.
None.
None declared.
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public static | generateBlogPostSchema() | Generate schema.org structured data for a blog post. | 27 |
| protected static | determineCreativeWorkType() | (undocumented) | 96 |
| private static | baseURL() | (undocumented) | 108 |
public static function generateBlogPostSchema(int $post)
lines 27–94 (68)
Generate schema.org structured data for a blog post.
| Parameter | Type | Default | Description |
|---|---|---|---|
$post | int | required | none |
Returns: (none declared) — string JSON-LD structured data.
protected static function determineCreativeWorkType(string $postType): string
lines 96–106 (11)
| Parameter | Type | Default | Description |
|---|---|---|---|
$postType | string | required | none |
Returns: string
private static function baseURL(): string
lines 108–111 (4)
Takes no parameters.
Returns: string
| Alias | Fully-qualified name |
|---|---|
Schema | Melbahja\Seo\Schema |
Thing | Melbahja\Seo\Schema\Thing |
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.