[BUGFIX] Correctly define allowedSubProperties of TwitterCardMetaTagManager
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / MetaTag / TwitterCardMetaTagManager.php
1 <?php
2 declare(strict_types = 1);
3
4 namespace TYPO3\CMS\Core\MetaTag;
5
6 /*
7 * This file is part of the TYPO3 CMS project.
8 *
9 * It is free software; you can redistribute it and/or modify it under
10 * the terms of the GNU General Public License, either version 2
11 * of the License, or any later version.
12 *
13 * For the full copyright and license information, please read the
14 * LICENSE.txt file that was distributed with this source code.
15 *
16 * The TYPO3 project - inspiring people to share!
17 */
18
19 class TwitterCardMetaTagManager extends AbstractMetaTagManager
20 {
21 /**
22 * Array of properties that can be handled by this manager
23 *
24 * @var array
25 */
26 protected $handledProperties = [
27 'twitter:card' => [],
28 'twitter:site' => [
29 'allowedSubProperties' => [
30 'id' => [],
31 ]
32 ],
33 'twitter:creator' => [
34 'allowedSubProperties' => [
35 'id' => [],
36 ]
37 ],
38 'twitter:description' => [],
39 'twitter:title' => [],
40 'twitter:image' => [
41 'allowedSubProperties' => [
42 'alt' => [],
43 ]
44 ],
45 'twitter:player' => [
46 'allowedSubProperties' => [
47 'width' => [],
48 'height' => [],
49 'stream' => [],
50 ]
51 ],
52 'twitter:app' => [
53 'allowedSubProperties' => [
54 'name:iphone' => [],
55 'id:iphone' => [],
56 'url:iphone' => [],
57 'name:ipad' => [],
58 'id:ipad' => [],
59 'url:ipad' => [],
60 'name:googleplay' => [],
61 'id:googleplay' => [],
62 'url:googleplay' => [],
63 ]
64 ],
65 ];
66 }