Easy way to define entity and additional custom logic (crud) in module

Page 1

+44 7772 177774

info@shiftsapp.com

www.shiftsapp.com


Easy Way to Define Entity and Additional Custom Logic (Crud) In Module

+44 7772 177774

info@shiftsapp.com

www.shiftsapp.com


Basically three options are available Concerning an easy way to define entity and additional custom logic (CRUD) in module

+44 7772 177774

info@shiftsapp.com

www.shiftsapp.com


#1 #1 Create Create an an entity entity type type by by dint dint ofof the the admin admin interface interface Create Create aa new new node.html.twig node.html.twig template template file file However However this this lacks lacks the the competence competence toto carry carry out out custom custom PHP PHP logic logic and and deliver deliver the the information information toto twig. twig. +44 7772 177774

info@shiftsapp.com

www.shiftsapp.com


#2 #2

Create Create aa content content type type inin aa component component and and define define the the fields fields by by dint dint ofof the the admin. admin. This This can can bebe carried carried out out via via drupal drupal generate:entity:content generate:entity:content with with the the Drupal Drupal Console. Console.

+44 7772 177774

info@shiftsapp.com

www.shiftsapp.com


#3 #3

Create Create aa module module inin which which you you can can define define the the content content type type and and hard-code hard-code all all the the fields. fields. This This inin general general isis less less flexible flexible but but isis perhaps perhaps aa more more powerful powerful option. option.

+44 7772 177774

info@shiftsapp.com

www.shiftsapp.com


• Both option 2 and option 3 seem feasible • Considering the options, a custom template can readily be created in the module sooner or later +44 7772 177774

info@shiftsapp.com

www.shiftsapp.com


For more information on learning the east way to define entity and additional custom logic (CRUD), please visit the website www.shiftsapp.com

+44 7772 177774

info@shiftsapp.com

www.shiftsapp.com


CONTACT US 26 Unit 4 Wads Worth Road, Perivale London ub6 7jz +44 7772 177774 info@shiftsapp.com www.shiftsapp.com

Register Now


Thank You

+44 7772 177774

info@shiftsapp.com

www.shiftsapp.com


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.