1
0
Files
re_capitulating_queer/site/plugins/embed/lib/fields.php
Philip Wagner 78b6c0d381 init
2024-08-31 10:01:49 +02:00

23 lines
548 B
PHP

<?php
return array(
'embed' => array(
'extends' => 'url',
'props' => array(
'provider' > function($provider = null) {
return $provider;
},
'icons' > function($icons = false) {
return $icons;
},
),
'computed' => array(
'value' => function() {
$yaml = Yaml::decode($this->value);
return count($yaml) ? $yaml : $this->value;
},
),
'validations' => null
)
);