Ctools_include is a great way to include files as you wish as it's much easier to use as module_load_include, because it has as $dir parameter.

Just a random example

ctools_include($filename = 'theme', $module = 'views', $dir = 'theme')
module_load_include('inc', 'views', 'theme/theme')

It seems to make sense though to have $module and $filename switched.

Comments

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

dawehner’s picture

Issue summary: View changes
Status: Active » Fixed

Given how many classes we have I doubt this is still useful.
@dawehner Feel free to reopen this issue, if you disagree with @dawehner

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.