Questions tagged «plugins»

1
如何以编程方式设置时间类型字段?
我创建一个自定义内容实体类型。 我希望活动时间一个字段。 由于没有时间字段,而是dataTime_type,所以我为自定义字段创建了一个插件: FieldType:TimeItem.php /** * Plugin implementation of the 'time' field type. * * @FieldType( * id = "time", * label = @Translation("Time Field"), * description = @Translation("Permet la creation d'un champ de type time"), * default_widget = "time_widget", * default_formatter = "time_formatter" * ) */ /** * {@inheritdoc} …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.