6. Plugin System (Layouts aka
SKOTCH)
http://drupal.org/node/1704454 - Plugin system
http://drupal.org/node/1637614 - D8 Plugin system docs
http://drupal.org/sandbox/eclipsegc/1441840 - Drupal 8
Blocks Everywhere sandbox by http://dgo.to/@EclipseGc
http://munich2012.drupal.org/content/drupal-blocks-layouts-initiative-scotch-
update
http://drupal.org/node/1535868 Blocks as plugins http:
//drupal.org/node/1743686 - Condition Plugin System
7. Drupal 7 (http://drupal.org/node/1704454)
<?php
function hook_aggregator_fetch_info() {
return array(
'title' => t('Default fetcher'),
'description' => t('Default fetcher for resources available by
URL.'),
);
}
function hook_aggregator_fetch($feed) {
$feed->source_string = mymodule_fetch($feed->url);
}
?>
8. Drupal 8 (CTools) (http://drupal.
org/node/1704454)
<?php
/**
* @Plugin(
* id = "aggregator",
* title = @Translation("Default fetcher"),
* description = @Translation("Downloads data
from a URL using Drupal's HTTP request handler.")
*)
*/
class DefaultFetcher implements FetcherInterface {
?>
9. Drupal 8 blocks (needs work) (http:
//drupal.org/node/1535868)
<?php
namespace Drupalaggregator;
use DrupalCorePluginPluginDerivativeInterface;
use DrupalblockAbstractBlock;
class FeedBlock extends AbstractBlock implements
PluginDerivativeInterface {
public function access() {... }
public function info() {...}
public function configure($form, &$form_state) {..}
public function configureSubmit($form, &$form_state) {...}
public function build() {...}
?>
10. Language System
1. Translations storage, batch-import
2. Extends:
● language,
● locale_translation,
● 10n_update
http://munich2012.drupal.org/content/drupal-8s-
multilingual-wonderland