You are here

function social_event_type_default_value_function in Open Social 10.2.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_event/modules/social_event_type/social_event_type.module \social_event_type_default_value_function()
  2. 10.0.x modules/social_features/social_event/modules/social_event_type/social_event_type.module \social_event_type_default_value_function()
  3. 10.1.x modules/social_features/social_event/modules/social_event_type/social_event_type.module \social_event_type_default_value_function()

Sets the default value for the event type icon field.

2 string references to 'social_event_type_default_value_function'
field.field.taxonomy_term.event_types.field_event_type_icon.yml in modules/social_features/social_event/modules/social_event_type/config/install/field.field.taxonomy_term.event_types.field_event_type_icon.yml
modules/social_features/social_event/modules/social_event_type/config/install/field.field.taxonomy_term.event_types.field_event_type_icon.yml
social_event_type_update_8902.yml in modules/social_features/social_event/modules/social_event_type/config/static/social_event_type_update_8902.yml
modules/social_features/social_event/modules/social_event_type/config/static/social_event_type_update_8902.yml

File

modules/social_features/social_event/modules/social_event_type/social_event_type.module, line 129
The Social event type module.

Code

function social_event_type_default_value_function(ContentEntityInterface $entity, FieldDefinitionInterface $definition) {
  return [
    [
      'value' => 'icon-event',
    ],
  ];
}