Adding Properties to an Entity Type
After creating the entity type "vehicle" as defined in our example, we can add the necessary properties.
to add new properties to our "vehicle" entity type, we can go to:
admin/structure/entity-type/vehicle/properties
In our example we defined that we should have 3 properties on all our vehicles: year, make and model.
Let's add the year property to our entity type.
To add a new property all we have to do is select a type, and give the property a name. For the year property we will select "Integer" as the type, and we will name our property "Year". There are also "behavior" options, but we can talk about those later.
After filling the appropriate fields click on "Add Property". Now we can see that our new "year" property has been added to the table at the top. To activate our property, let's click the check box next it, and let's save our changes.
The same steps can be followed to add our make and model properties with their appropriate types.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion