Creating a property behavior
Creating a property behavior is done by implementing the plugin architecture from the CTools module. For any developer to add new "property
Sometime in ECK 1.x, the ability to add/delete properties from an entity type was introduced. The slight problem was that there was no "good" way to add any sort of use or functionality to the properties. ECK by default managed 3 properties that you could create ('created', 'changed' and 'uid') but, other than that the rest of default and custom properties, were sort of useless.
Even back then, it was not terribly hard to add functionality to a property. It is easy to implement one of the many entity hooks provided by the Entity API (contributed entity module) and add some information to a property during a save or a load. The problem I saw with that approach was that this would not make our code very reusable. Yes, we can reuse it by defining the functionality in a function and then calling that function from multiple entity hooks, or by calling it from our own Entity class, but I thought that ECK could help make all of these easier.
That is why the "Property Behavior" system was developed. This system allows us to create one file with all of the functionality we want to provide for a property, and ECK will make this functionality available for any property on any entity type.
So, in ECK 7.x-2.x, all of that default functionality attached to 'created', 'changed', and 'uid' is exposed as behaviors so that they can easily be used by other properties, or replaced if more powerful and interesting functionality is needed.
Creating a property behavior is done by implementing the plugin architecture from the CTools module. For any developer to add new "property