Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Alternate resources: 

Our Custom Drupal Entity Use Case

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:05
    I'd like to demonstrate
  • 0:07
    what it is that we're going to be building
  • 0:09
    throughout the course of the next couple of lessons.
  • 0:12
    We're going to create a new custom entity type
  • 0:16
    called Video Entity.
  • 0:19
    In doing so,
  • 0:21
    we're going to add a tab to our toolbar
  • 0:23
    which allows us to administer video entities on our site,
  • 0:26
    much like you can administer the nodes on your site already.
  • 0:29
    We'll provide a page

Our Custom Drupal Entity Use Case


In the next set of lessons we're going to be writing to the code to create our own custom entity type. The goal is to create a video entity that stores embed codes for YouTube videos and allows us to display the videos on our site. In this scenario we don't want all the overhead that comes with using the node system, like comments for example, so instead we're going to write our own custom entity for storing the data. We're going to take a look at the completed entity type that we're attempting to build and just walk through all the various components. We'll take a look at creating/updating, and deleting a video via the UI, and also the views integration and fieldability of our custom video entities.

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.