Drupal CMI: How Drupal 8’s Configuration API Can Work for Development Teams

Drupal 8 opens the door for clean, readable, version-controlled configuration in Drupal development. But how can we leverage this system effectively in development teams? Configuration Management in Drupal 7, Our Process Our collaborative Drupal 7 development process typically starts with a site built by a team, entirely defined in code. We don’t do databases until… Continue reading Drupal CMI: How Drupal 8’s Configuration API Can Work for Development Teams

Define Text Format in Drupal Migrate Field Mappings

In migrate, defining a text format for a mapped field is fairly straightforward. $this->addFieldMapping(‘field_about_us:format’) ->defaultValue(‘full_html’); What we’re doing in the example above is mapping the default value “full_html” to the “format” subfield of the “field_about_us” field. This essentially sets the text format to full_html for data migrated into our content type. More field-mapping specific information… Continue reading Define Text Format in Drupal Migrate Field Mappings

Accessing Field Values in Drupal 7 Using field_get_items()

There are two great ways I’ve found to quickly access an entity’s field values in a Drupal-friendly way. Both of these approaches assume that you know the type of entity you’re working with and that you already have your entity loaded into a variable available to you. This week I’ll be focusing on the handy… Continue reading Accessing Field Values in Drupal 7 Using field_get_items()