function social_topic_default_value_function in Open Social 10.1.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_topic/social_topic.module \social_topic_default_value_function()
- 10.0.x modules/social_features/social_topic/social_topic.module \social_topic_default_value_function()
- 10.2.x modules/social_features/social_topic/social_topic.module \social_topic_default_value_function()
Sets the default value for the topic type icon field.
2 string references to 'social_topic_default_value_function'
- field.field.taxonomy_term.topic_types.field_topic_type_icon.yml in modules/
social_features/ social_topic/ config/ install/ field.field.taxonomy_term.topic_types.field_topic_type_icon.yml - modules/social_features/social_topic/config/install/field.field.taxonomy_term.topic_types.field_topic_type_icon.yml
- social_topic_update_8907.yml in modules/
social_features/ social_topic/ config/ static/ social_topic_update_8907.yml - modules/social_features/social_topic/config/static/social_topic_update_8907.yml
File
- modules/
social_features/ social_topic/ social_topic.module, line 314 - The Social topic module.
Code
function social_topic_default_value_function(ContentEntityInterface $entity, FieldDefinitionInterface $definition) {
return [
[
'value' => 'icon-topic',
],
];
}